incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject [30/50] git commit: [#5437] all types of artifacts (not just tickets) should have comments included in rss feed
Date Fri, 14 Dec 2012 15:03:29 GMT
[#5437] all types of artifacts (not just tickets) should have comments included in rss feed

It seems like the RSS feeds for discussion forums (top-level, per-forum, per-thread)
don't work well with this change, but they are buggy already, so should be fixed
separately.


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/e3076ece
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/e3076ece
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/e3076ece

Branch: refs/heads/ph/4655
Commit: e3076ecea8ff69581f42c5766146713d4d207871
Parents: 8f3b938
Author: Dave Brondsema <dbrondsema@geek.net>
Authored: Thu Dec 13 20:54:09 2012 +0000
Committer: Dave Brondsema <dbrondsema@geek.net>
Committed: Thu Dec 13 21:20:18 2012 +0000

----------------------------------------------------------------------
 Allura/allura/model/discuss.py |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/e3076ece/Allura/allura/model/discuss.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/discuss.py b/Allura/allura/model/discuss.py
index 5c1d82e..f29c425 100644
--- a/Allura/allura/model/discuss.py
+++ b/Allura/allura/model/discuss.py
@@ -210,10 +210,8 @@ class Thread(Artifact, ActivityObject):
         link = None
         if self.app.tool_label == 'Tickets':
             link = self.artifact.url() + p.url_paginated()[len(self.url()):]
-            if self.ref:
-                Feed.post(self.ref.artifact, title=p.subject, description=p.text, link=link)
-                return p
-        Feed.post(self, title=p.subject, description=p.text, link=link)
+        if self.ref:
+            Feed.post(self.primary(), title=p.subject, description=p.text, link=link)
         return p
 
     def post(self, text, message_id=None, parent_id=None,


Mime
View raw message