diff options
author | Michele Azzolari <macno@macno.org> | 2012-01-12 11:05:05 +0100 |
---|---|---|
committer | Michele Azzolari <macno@macno.org> | 2012-01-12 11:05:05 +0100 |
commit | bb025ebda14297b721f8816d13980a477f62bca6 (patch) | |
tree | 69ba32dee71087aaf604952adbb30d557bdaccfe /mediagoblin/user_pages/views.py | |
parent | 7f251b037bd5207652ca73f556e90b9633786a3c (diff) | |
download | mediagoblin-bb025ebda14297b721f8816d13980a477f62bca6.tar.lz mediagoblin-bb025ebda14297b721f8816d13980a477f62bca6.tar.xz mediagoblin-bb025ebda14297b721f8816d13980a477f62bca6.zip |
As per spec, we permit to have more then 1 hub
Diffstat (limited to 'mediagoblin/user_pages/views.py')
-rw-r--r-- | mediagoblin/user_pages/views.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mediagoblin/user_pages/views.py b/mediagoblin/user_pages/views.py index 2d4eac69..29360e23 100644 --- a/mediagoblin/user_pages/views.py +++ b/mediagoblin/user_pages/views.py @@ -235,10 +235,11 @@ def atom_feed(request): 'rel': 'alternate', 'type': 'text/html' }]; - if mg_globals.app_config["push_url"]: - atomlinks.append({ - 'rel': 'hub', - 'href': mg_globals.app_config["push_url"]}) + if mg_globals.app_config["push_urls"]: + for push_url in mg_globals.app_config["push_urls"]: + atomlinks.append({ + 'rel': 'hub', + 'href': push_url}) feed = AtomFeed( "MediaGoblin: Feed for user '%s'" % request.matchdict['user'], |