Commit 6a237e6dc3f9eb736761e27ad76821151b3d8034
Set branch property of issue comment post correctly
Maybe fix %wGQ5QoqNy5bZODCBe9qdUZ7nHawsoWGlGNJOEOltocA=.sha256Charles Lehner committed on 5/7/2016, 7:01:51 PM
Parent: bb78a24528903df1707911e8802bd62f59d7014c
Files changed
lib/repos/issues.js | changed |
lib/repos/issues.js | ||
---|---|---|
@@ -133,9 +133,12 @@ | ||
133 | 133 … | pull.unique('key'), |
134 | 134 … | self.web.addAuthorName(), |
135 | 135 … | u.sortMsgs(), |
136 | 136 … | pull.through(function (msg) { |
137 | - if (msg.value.timestamp > newestMsg.value.timestamp) | |
137 … | + // the newest message in the issue thread | |
138 … | + // becomes the branch of the new post | |
139 … | + if (msg.value.timestamp > newestMsg.value.timestamp | |
140 … | + && msg.value.content.root == issue.id) | |
138 | 141 … | newestMsg = msg |
139 | 142 … | }), |
140 | 143 … | pull.map(self.renderIssueActivityMsg.bind(self, req, repo, issue, |
141 | 144 … | req._t('issue.'), postId)) |
Built with git-ssb-web