fix(feed): attached content on mentions
This commit is contained in:
parent
bfde4265c6
commit
340fed6346
2 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ exports.runQuery = async function (roomId, event, notice) {
|
||||||
const original = await matrixClient.sendHtmlNotice(roomId, `${loadingString}`, `<code>${loadingString}</code>`);
|
const original = await matrixClient.sendHtmlNotice(roomId, `${loadingString}`, `<code>${loadingString}</code>`);
|
||||||
const findAllUsers = await fediverse.utils.getStatusMentions(notice, event, original);
|
const findAllUsers = await fediverse.utils.getStatusMentions(notice, event, original);
|
||||||
const exclude = "@10grans@fedi.cc";
|
const exclude = "@10grans@fedi.cc";
|
||||||
const users = findAllUsers.filter(users => !exclude.includes(findAllUsers))
|
const users = findAllUsers.filter(users => !exclude.includes(findAllUsers));
|
||||||
if (!users) return matrix.utils.editNoticeHTML(roomId, original, `<code>No eligible users found.</code>`);
|
if (!users) return matrix.utils.editNoticeHTML(roomId, original, `<code>No eligible users found.</code>`);
|
||||||
const rain = (users) => {
|
const rain = (users) => {
|
||||||
amount = users.length * 0.00000001337 // by per user:
|
amount = users.length * 0.00000001337 // by per user:
|
||||||
|
|
|
@ -48,7 +48,7 @@ const notifyFormatter = (res, roomId) => {
|
||||||
content = `${userDetails}
|
content = `${userDetails}
|
||||||
<font color="#03b381"><b>has <a href="${config.fediverse.domain}/notice/${res.status.id}">mentioned</a>
|
<font color="#03b381"><b>has <a href="${config.fediverse.domain}/notice/${res.status.id}">mentioned</a>
|
||||||
you:</font><blockquote><i>${res.status.content}</i><br>
|
you:</font><blockquote><i>${res.status.content}</i><br>
|
||||||
${hasAttachment(res.status.id)}
|
${hasAttachment(res)}
|
||||||
<br>(id: ${res.status.id}) ${registrar.post.visibilityEmoji(res.status.visibility)}
|
<br>(id: ${res.status.id}) ${registrar.post.visibilityEmoji(res.status.visibility)}
|
||||||
</blockquote>`;
|
</blockquote>`;
|
||||||
sendEventWithMeta(roomId, content, meta);
|
sendEventWithMeta(roomId, content, meta);
|
||||||
|
|
Loading…
Reference in a new issue