git ssb

0+

Kira / %V53yIAO6ZNGv1Lx9tCP…



forked from cel / ssb-issues

Commit 62c9984626da880fc36f0fdcf4bac4d7d3f2d3b1

Allow updates by any feed

cel committed on 11/4/2016, 11:40:14 PM
Parent: 0099a6481da34ffa656cc6b1699549145fe444b7

Files changed

README.mdchanged
index.jschanged
README.mdView
@@ -23,11 +23,8 @@
2323 make a post that updates an issue, or push a git commit that updates an issue.
2424 If the message does not have any content other than to update the issue, then
2525 the type may be `issue-edit`.
2626
27-An issue edit is only considered valid if its author is the author of the
28-issue (`issue.author`) or of the project of the issue (`issue.projectAuthor`).
29-
3027 ```js
3128 {
3229 type: 'issue-edit'|'post'|'git-update',
3330 issues: [{
index.jsView
@@ -8,13 +8,8 @@
88 return asyncMemo(fn)
99 return function (key, cb) { ac.get(key, cb) }
1010 }
1111
12-function isUpdateValid(issue, msg) {
13- return msg.value.author == issue.author
14- || msg.value.author == issue.projectAuthor
15-}
16-
1712 function truncate(str, len) {
1813 return str.length > len ? str.substr(0, len) + '...' : str
1914 }
2015
@@ -107,9 +102,9 @@
107102 )
108103 }
109104
110105 function onOldMsg(msg) {
111- if (!msg.value || !isUpdateValid(issue, msg))
106+ if (!msg.value)
112107 return
113108 var c = msg.value.content
114109
115110 // handle updates to issue
@@ -135,9 +130,9 @@
135130 checkReady()
136131 }
137132
138133 function onNewMsg(msg) {
139- if (!msg.value || !isUpdateValid(issue, msg))
134+ if (!msg.value)
140135 return
141136 var c = msg.value.content
142137
143138 // handle updates to issue

Built with git-ssb-web