As suggested by Elrond, we use only one setting
This commit is contained in:
parent
f502a89b6d
commit
7f251b037b
@ -51,7 +51,6 @@ allow_attachments = boolean(default=False)
|
||||
csrf_cookie_name = string(default='mediagoblin_csrftoken')
|
||||
|
||||
# Push stuff
|
||||
push_enabled = boolean(default=False)
|
||||
push_url = string(default='')
|
||||
|
||||
[storage:publicstore]
|
||||
|
@ -126,7 +126,7 @@ def submit_start(request):
|
||||
# re-raise the exception
|
||||
raise
|
||||
|
||||
if mg_globals.app_config["push_enabled"]:
|
||||
if mg_globals.app_config["push_url"]:
|
||||
feed_url=request.urlgen(
|
||||
'mediagoblin.user_pages.atom_feed',
|
||||
qualified=True,user=request.user.username)
|
||||
|
@ -235,7 +235,7 @@ def atom_feed(request):
|
||||
'rel': 'alternate',
|
||||
'type': 'text/html'
|
||||
}];
|
||||
if mg_globals.app_config["push_enabled"]:
|
||||
if mg_globals.app_config["push_url"]:
|
||||
atomlinks.append({
|
||||
'rel': 'hub',
|
||||
'href': mg_globals.app_config["push_url"]})
|
||||
|
Loading…
x
Reference in New Issue
Block a user