-
-
Save joar/dfca244ce0d4b588453b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/mediagoblin/user_pages/views.py b/mediagoblin/user_pages/views.py | |
index dea47fb..8602c58 100644 | |
--- a/mediagoblin/user_pages/views.py | |
+++ b/mediagoblin/user_pages/views.py | |
@@ -539,14 +539,16 @@ def collection_atom_feed(request): | |
'href': push_url}) | |
feed = AtomFeed( | |
- "MediaGoblin: Feed for %s's collection %s" % (request.matchdict['user'], collection.title), | |
- feed_url=request.url, | |
- id='tag:{host},{year}:collection.user-{user}.title-{title}'.format( | |
- host=request.host, | |
- year=datetime.datetime.today().strftime('%Y'), | |
- user=request.matchdict['user'], | |
- title=collection.title), | |
- links=atomlinks) | |
+ "MediaGoblin: Feed for %s's collection %s" % | |
+ (request.matchdict['user'], collection.title), | |
+ feed_url=request.url, | |
+ id=u'tag:{user}@{host},{year}:collection.slug-{slug}'\ | |
+ .format( | |
+ host=request.host, | |
+ year=collection.created.strftime('%Y'), | |
+ user=request.matchdict['user'], | |
+ slug=collection.slug), | |
+ links=atomlinks) | |
for item in cursor: | |
entry = item.get_media_entry |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment