git ssb

30+

cel / git-ssb-web



Commit 6a237e6dc3f9eb736761e27ad76821151b3d8034

Set branch property of issue comment post correctly

Maybe fix %wGQ5QoqNy5bZODCBe9qdUZ7nHawsoWGlGNJOEOltocA=.sha256
Charles Lehner committed on 5/7/2016, 7:01:51 PM
Parent: bb78a24528903df1707911e8802bd62f59d7014c

Files changed

lib/repos/issues.jschanged
lib/repos/issues.jsView
@@ -133,9 +133,12 @@
133133 pull.unique('key'),
134134 self.web.addAuthorName(),
135135 u.sortMsgs(),
136136 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)
138141 newestMsg = msg
139142 }),
140143 pull.map(self.renderIssueActivityMsg.bind(self, req, repo, issue,
141144 req._t('issue.'), postId))

Built with git-ssb-web