incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [27/28] git commit: [#2835] ticket:304 Use new version of url_paginated instead of slicing trick
Date Wed, 24 Apr 2013 17:16:36 GMT
[#2835] ticket:304 Use new version of url_paginated instead of slicing trick


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

Branch: refs/heads/db/2835
Commit: 57cf03a77b0ca0cb5d291659942a6b23bb071188
Parents: a7840ce
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Thu Apr 4 12:15:04 2013 +0000
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Wed Apr 24 16:34:43 2013 +0000

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


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/57cf03a7/Allura/allura/model/discuss.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/discuss.py b/Allura/allura/model/discuss.py
index fe79820..d169e1b 100644
--- a/Allura/allura/model/discuss.py
+++ b/Allura/allura/model/discuss.py
@@ -225,8 +225,8 @@ class Thread(Artifact, ActivityObject):
         if not self.first_post:
             self.first_post_id = p._id
         link = None
-        if self.app.tool_label == 'Tickets':
-            link = self.artifact.url() + p.url_paginated()[len(self.url()):]
+        if self.app.tool_label.lower() == 'tickets':
+            link = p.url_paginated()
         if self.ref:
             Feed.post(self.primary(), title=p.subject, description=p.text, link=link)
         return p


Mime
View raw message