git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Commit 528c7d732181d5b5524373c1b35cd5dbde446f1f

prioritise following over unblocking for feed messages

Matt McKegg committed on 10/18/2017, 8:13:03 AM
Parent: f673ec400fd6aac5f54664a90b9d9fc631bab957

Files changed

plugs/message/html/render/following.jschanged
plugs/message/html/render/following.jsView
@@ -32,17 +32,20 @@
3232 function messageContent (msg) {
3333 var following = msg.value.content.following
3434 var blocking = msg.value.content.blocking
3535
36- if (typeof blocking === 'boolean') {
36+ if (blocking === true) {
3737 return [
38- blocking ? i18n('blocked ') : i18n('unblocked '),
39- api.profile.html.person(msg.value.content.contact)
38+ i18n('blocked '), api.profile.html.person(msg.value.content.contact)
4039 ]
41- } else {
40+ } else if (typeof following === 'boolean') {
4241 return [
4342 following ? i18n('followed ') : i18n('unfollowed '),
4443 api.profile.html.person(msg.value.content.contact)
4544 ]
45+ } else if (blocking === false) {
46+ return [
47+ i18n('unblocked '), api.profile.html.person(msg.value.content.contact)
48+ ]
4649 }
4750 }
4851 }

Built with git-ssb-web