git ssb

0+

mixmix / patchbay-mix



forked from Dominic / patchbay

Commit d6962d0cf16699d6ee6c70fcbb8596d994c3868b

add settings to enable MVP toggling of things I don't want

mix irving committed on 9/19/2016, 8:05:14 AM
Parent: 33eacb10147b21fe1eddcd4eddd5ee575141d780

Files changed

modules/like.jschanged
settings.jsadded
modules/like.jsView
@@ -1,22 +1,25 @@
11
22 var h = require('hyperscript')
33 var u = require('../util')
44 var pull = require('pull-stream')
5 +var settings = require('../settings').like
56
67 var plugs = require('../plugs')
78
89 var message_confirm = plugs.first(exports.message_confirm = [])
910 var message_link = plugs.first(exports.message_link = [])
1011 var sbot_links = plugs.first(exports.sbot_links = [])
1112
1213 exports.message_content = function (msg, sbot) {
13- if(msg.value.content.type !== 'vote') return
14 + if (settings.message_content === false) return
15 + if (msg.value.content.type !== 'vote') return
16 +
1417 var link = msg.value.content.vote.link
1518 return h('div',
16- msg.value.content.vote.value > 0 ? 'Dug' : 'Undug',
17- ' ', message_link(link)
18- )
19 + msg.value.content.vote.value > 0 ? 'Dug' : 'Undug',
20 + ' ', message_link(link)
21 + )
1922 }
2023
2124 exports.message_meta = function (msg, sbot) {
2225 var digs = h('a')
settings.jsView
@@ -1,0 +1,7 @@
1 +module.exports = {
2 + like: {
3 + message_content: false
4 + }
5 +
6 +}
7 +

Built with git-ssb-web