Commit 62c9984626da880fc36f0fdcf4bac4d7d3f2d3b1
Allow updates by any feed
cel committed on 11/4/2016, 11:40:14 PMParent: 0099a6481da34ffa656cc6b1699549145fe444b7
Files changed
README.md | changed |
index.js | changed |
README.md | ||
---|---|---|
@@ -23,11 +23,8 @@ | ||
23 | 23 | make a post that updates an issue, or push a git commit that updates an issue. |
24 | 24 | If the message does not have any content other than to update the issue, then |
25 | 25 | the type may be `issue-edit`. |
26 | 26 | |
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 | - | |
30 | 27 | ```js |
31 | 28 | { |
32 | 29 | type: 'issue-edit'|'post'|'git-update', |
33 | 30 | issues: [{ |
index.js | ||
---|---|---|
@@ -8,13 +8,8 @@ | ||
8 | 8 | return asyncMemo(fn) |
9 | 9 | return function (key, cb) { ac.get(key, cb) } |
10 | 10 | } |
11 | 11 | |
12 | -function isUpdateValid(issue, msg) { | |
13 | - return msg.value.author == issue.author | |
14 | - || msg.value.author == issue.projectAuthor | |
15 | -} | |
16 | - | |
17 | 12 | function truncate(str, len) { |
18 | 13 | return str.length > len ? str.substr(0, len) + '...' : str |
19 | 14 | } |
20 | 15 | |
@@ -107,9 +102,9 @@ | ||
107 | 102 | ) |
108 | 103 | } |
109 | 104 | |
110 | 105 | function onOldMsg(msg) { |
111 | - if (!msg.value || !isUpdateValid(issue, msg)) | |
106 | + if (!msg.value) | |
112 | 107 | return |
113 | 108 | var c = msg.value.content |
114 | 109 | |
115 | 110 | // handle updates to issue |
@@ -135,9 +130,9 @@ | ||
135 | 130 | checkReady() |
136 | 131 | } |
137 | 132 | |
138 | 133 | function onNewMsg(msg) { |
139 | - if (!msg.value || !isUpdateValid(issue, msg)) | |
134 | + if (!msg.value) | |
140 | 135 | return |
141 | 136 | var c = msg.value.content |
142 | 137 | |
143 | 138 | // handle updates to issue |
Built with git-ssb-web