git ssb

16+

Dominic / patchbay



Commit 2f83e7af39eb4c09a1137daf878303e383a8ed3c

woopsfix

mixmix committed on 11/23/2018, 11:36:51 AM
Parent: c948308a09c8225c1c36b7910e2f7c3e8522127e

Files changed

message/html/like.jschanged
message/html/like.jsView
@@ -1,7 +1,8 @@
1-var { h, computed } = require('mutant')
2-var nest = require('depnest')
1 +const { h, computed } = require('mutant')
2 +const nest = require('depnest')
33 const Scuttle = require('scuttle-thread')
4 +const { isLink } = require('ssb-ref')
45
56 exports.needs = nest({
67 'keys.sync.id': 'first',
78 'message.obs.likes': 'first',
@@ -19,8 +20,10 @@
1920 // TODO make this full-async :
2021 // - get whether i like this currently
2122 // - only update after I click like/ unlike
2223
24 + if (!isLink(msg.key)) return
25 +
2326 return computed(api.message.obs.likes(msg.key), likes => {
2427 const iLike = likes.includes(id)
2528
2629 return h('MessageLike',

Built with git-ssb-web