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')
|
csrf_cookie_name = string(default='mediagoblin_csrftoken')
|
||||||
|
|
||||||
# Push stuff
|
# Push stuff
|
||||||
push_enabled = boolean(default=False)
|
|
||||||
push_url = string(default='')
|
push_url = string(default='')
|
||||||
|
|
||||||
[storage:publicstore]
|
[storage:publicstore]
|
||||||
|
@ -126,7 +126,7 @@ def submit_start(request):
|
|||||||
# re-raise the exception
|
# re-raise the exception
|
||||||
raise
|
raise
|
||||||
|
|
||||||
if mg_globals.app_config["push_enabled"]:
|
if mg_globals.app_config["push_url"]:
|
||||||
feed_url=request.urlgen(
|
feed_url=request.urlgen(
|
||||||
'mediagoblin.user_pages.atom_feed',
|
'mediagoblin.user_pages.atom_feed',
|
||||||
qualified=True,user=request.user.username)
|
qualified=True,user=request.user.username)
|
||||||
|
@ -235,7 +235,7 @@ def atom_feed(request):
|
|||||||
'rel': 'alternate',
|
'rel': 'alternate',
|
||||||
'type': 'text/html'
|
'type': 'text/html'
|
||||||
}];
|
}];
|
||||||
if mg_globals.app_config["push_enabled"]:
|
if mg_globals.app_config["push_url"]:
|
||||||
atomlinks.append({
|
atomlinks.append({
|
||||||
'rel': 'hub',
|
'rel': 'hub',
|
||||||
'href': mg_globals.app_config["push_url"]})
|
'href': mg_globals.app_config["push_url"]})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user