diff --git a/mediagoblin/listings/views.py b/mediagoblin/listings/views.py
index d37161f..220095c 100644
a
|
b
|
|
14 | 14 | # You should have received a copy of the GNU Affero General Public License |
15 | 15 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 | 16 | |
| 17 | from mediagoblin import mg_globals |
17 | 18 | from mediagoblin.db.models import MediaEntry |
18 | 19 | from mediagoblin.db.util import media_entries_for_tag_slug |
19 | 20 | from mediagoblin.tools.pagination import Pagination |
… |
… |
def tag_atom_feed(request):
|
77 | 78 | """ |
78 | 79 | ATOM feed id is a tag URI (see http://en.wikipedia.org/wiki/Tag_URI) |
79 | 80 | """ |
| 81 | atomlinks=[{ |
| 82 | 'href': request.urlgen( |
| 83 | 'mediagoblin.listings.tags_listing', |
| 84 | qualified=True, tag=tag_slug ) |
| 85 | }] |
| 86 | |
| 87 | if mg_globals.app_config["push_urls"]: |
| 88 | for push_url in mg_globals.app_config["push_urls"]: |
| 89 | atomlinks.append({ |
| 90 | 'rel': 'hub', |
| 91 | 'href': push_url}) |
| 92 | |
80 | 93 | feed = AtomFeed( |
81 | 94 | "MediaGoblin: Feed for tag '%s'" % tag_slug, |
82 | 95 | feed_url=request.url, |
83 | 96 | id='tag:'+request.host+',2011:gallery.tag-%s' % tag_slug, |
84 | | links=[{'href': request.urlgen( |
85 | | 'mediagoblin.listings.tags_listing', |
86 | | qualified=True, tag=tag_slug ), |
87 | | 'rel': 'alternate', |
88 | | 'type': 'text/html'}]) |
| 97 | links=atomlinks) |
| 98 | |
| 99 | |
89 | 100 | for entry in cursor: |
90 | 101 | feed.add(entry.get('title'), |
91 | 102 | entry.description_html, |