From 9da2d13dbf3a4708287da5f08149a655aec552fd Mon Sep 17 00:00:00 2001 From: vulet Date: Sun, 21 Feb 2021 14:10:32 +0800 Subject: [PATCH] fix(feed): use domestic homeserver --- commands/fediverse/utils.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/commands/fediverse/utils.js b/commands/fediverse/utils.js index d55f676..7232554 100644 --- a/commands/fediverse/utils.js +++ b/commands/fediverse/utils.js @@ -34,11 +34,11 @@ const notifyFormatter = (res, roomId) => { fediverse.auth.me !== res.account.url ? res.meta = 'favourite' : res.meta = 'redact'; meta = `${res.meta} ${res.status.id}`; content = `${userDetails} - has favorited + has favorited your post:
${res.status.content}
${hasAttachment(res)} -
(id: ${res.id}) ${registrar.post.visibilityEmoji(res.status.visibility)} +
(id: ${res.status.id}) ${registrar.post.visibilityEmoji(res.status.visibility)}
`; sendEventWithMeta(roomId, content, res.meta); break; @@ -46,10 +46,10 @@ const notifyFormatter = (res, roomId) => { fediverse.auth.me !== res.account.url ? res.meta = 'mention' : res.meta = 'redact'; meta = `${res.meta} ${res.status.id}`; content = `${userDetails} - has mentioned + has mentioned you:
${res.status.content}
- ${hasAttachment(res)} -
(id: ${res.id}) ${registrar.post.visibilityEmoji(res.status.visibility)} + ${hasAttachment(res.status.id)} +
(id: ${res.status.id}) ${registrar.post.visibilityEmoji(res.status.visibility)}
`; sendEventWithMeta(roomId, content, meta); break; @@ -57,10 +57,10 @@ const notifyFormatter = (res, roomId) => { fediverse.auth.me !== res.account.url ? res.meta = 'reblog' : res.meta = 'redact'; meta = `${res.meta} ${res.status.id}`; content = `${userDetails} - has repeated + has repeated your post:
${res.status.content}
${hasAttachment(res)} -
(id: ${res.id}) ${registrar.post.visibilityEmoji(res.status.visibility)} +
(id: ${res.status.id}) ${registrar.post.visibilityEmoji(res.status.visibility)}
`; sendEventWithMeta(roomId, content, meta); break; @@ -71,7 +71,7 @@ const notifyFormatter = (res, roomId) => { const isOriginal = (res, roomId) => { if (res.data) res = res.data; - userDetails = ` + userDetails = ` ${res.account.acct}`; fediverse.auth.me !== res.account.url ? res.meta = 'status' : res.meta = 'redact'; meta = `${res.meta} ${res.id}`; @@ -85,13 +85,13 @@ const isOriginal = (res, roomId) => { const isReblog = (res, roomId) => { if (res.data) res = res.data; - userDetails = ` + userDetails = ` ${res.account.acct}`; fediverse.auth.me !== res.account.url ? res.meta = 'status' : res.meta = 'unreblog'; meta = `${res.meta} ${res.reblog.id}`; content = `${userDetails} - has repeated - ${res.reblog.account.acct}'s post: + has repeated + ${res.reblog.account.acct}'s post:
${res.content}
${hasAttachment(res)}
(id: ${res.reblog.id}) ${registrar.post.visibilityEmoji(res.visibility)}