git ssb

2+

Dominic / yap



Commit 4090021c2ac60ff68c0c80ab6323e98240256b73

message type should be post by default

Dominic Tarr committed on 2/23/2019, 12:31:58 AM
Parent: bde37df2268df3856e1959538130cd1001abdaff

Files changed

apis/compose.jschanged
apis/compose.jsView
@@ -6,13 +6,14 @@
66 module.exports = function (sbot) {
77 return function (opts, apply, req) {
88 var context = req.cookies
99 var id = opts.id
10- var meta = opts.meta || opts.content
10 + var content = opts.meta || opts.content || {}
11 + content.type = content.type || 'post'
1112 var tr = Translations(context.lang)
1213 return apply('publish', {
1314 id: opts.id,
14- content: opts.meta || opts.content,
15 + content: content,
1516 inputs:
1617 ['textarea', {name: 'content[text]'}],
1718 name: tr('Preview')
1819 })

Built with git-ssb-web