git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Tree: a5417350593eb41e7c3b56c8edf96aa895411fb2

Files: a5417350593eb41e7c3b56c8edf96aa895411fb2 / modules / public.js

413 bytesRaw
1var plugs = require('patchbay/plugs')
2var message_compose = plugs.first(exports.message_compose = [])
3var sbot_log = plugs.first(exports.sbot_log = [])
4var feed_summary = plugs.first(exports.feed_summary = [])
5
6exports.screen_view = function (path, sbot) {
7 if (path === '/public') {
8 return feed_summary(sbot_log, [
9 message_compose({type: 'post'}, {placeholder: 'Write a public message'})
10 ])
11 }
12}
13

Built with git-ssb-web