forked from cory/tildefriends
Redo sharing apps so that they can be mentioned from regular posts.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3723 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@@ -325,17 +325,8 @@ core.register('message', async function(m) {
|
||||
} else if (m.message) {
|
||||
if (m.message.connect) {
|
||||
await ssb.connect(m.message.connect);
|
||||
} else if (m.message.post) {
|
||||
await ssb.post(m.message.post);
|
||||
} else if (m.message.appendMessage) {
|
||||
await ssb.appendMessage(m.message.appendMessage);
|
||||
} else if (m.message.share_app) {
|
||||
var app = await ssb.blobGet(m.message.share_app.app);
|
||||
app = JSON.parse(utf8Decode(app));
|
||||
app.type = 'tildefriends-app';
|
||||
app.name = m.message.share_app.name;
|
||||
app.text = m.message.share_app.text;
|
||||
await ssb.appendMessage(app);
|
||||
} else if (m.message.user) {
|
||||
await sendUser(await database("ssb"), m.message.user);
|
||||
} else if (m.message.refresh) {
|
||||
|
Reference in New Issue
Block a user