git ssb

16+

Dominic / patchbay



Commit 2e24392624c760f642aeacbb505728e0d85f2e34

disable likes + reply for message confirm preview

mix irving committed on 4/2/2017, 11:19:22 PM
Parent: b1d27bb56f4c964bcfc04597ab5026aaaa9b57d5

Files changed

message/html/confirm.mcsschanged
message/html/meta/likes.jschanged
message/html/confirm.mcssView
@@ -19,10 +19,10 @@
1919 }
2020 }
2121 }
2222
23- section.action {
24- display: none
23+ section.actions {
24+ visibility: hidden
2525 }
2626 }
2727 }
2828
message/html/meta/likes.jsView
@@ -1,6 +1,7 @@
11 const nest = require('depnest')
22 const { h, computed, map } = require('mutant')
3+const ref = require('ssb-ref')
34
45 exports.gives = nest('message.html.meta')
56
67 exports.needs = nest({
@@ -11,8 +12,10 @@
1112 exports.create = (api) => {
1213 return nest('message.html.meta', likes)
1314
1415 function likes (msg) {
16+ if (!ref.isMsgId(msg.key)) return
17+
1518 const symbol = '\u2713' // tick 🗸
1619
1720 var likes = api.message.obs.likes(msg.key)
1821

Built with git-ssb-web