Files: a5417350593eb41e7c3b56c8edf96aa895411fb2 / modules / public.js
413 bytesRaw
1 | var plugs = require('patchbay/plugs') |
2 | var message_compose = plugs.first(exports.message_compose = []) |
3 | var sbot_log = plugs.first(exports.sbot_log = []) |
4 | var feed_summary = plugs.first(exports.feed_summary = []) |
5 | |
6 | exports.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