Commit 56b8551c26f79bf9916918f2d7cb50aa0f9e9734
whoops, exclude private messages from "pending updates" on public feed
Matt McKegg committed on 10/25/2017, 10:35:44 AMParent: bdee82e994ee3ce0e26e552ad2fba8393f32ce45
Files changed
sbot/roots.js | changed |
sbot/roots.js | ||
---|---|---|
@@ -48,9 +48,11 @@ | ||
48 | 48 | |
49 | 49 | // FILTER ROOTS |
50 | 50 | pull.filter(item => { |
51 | 51 | var root = item.root || item |
52 | - if (filter && root && root.value) { | |
52 | + var isPrivate = root.value && typeof root.value.content === 'string' | |
53 | + | |
54 | + if (filter && root && root.value && !isPrivate) { | |
53 | 55 | return checkReplyForcesDisplay(item) || filter(ids, root) |
54 | 56 | } |
55 | 57 | }) |
56 | 58 | )) |
Built with git-ssb-web