Add todo
This commit is contained in:
parent
adb08cbdf3
commit
c3a481b592
@ -165,6 +165,7 @@ client.get(`/accounts/${process.env.MASTODON_ID}/statuses`, {
|
||||
});
|
||||
if (status.mentions > 0 && status.in_reply_to_id !== null){
|
||||
// Post is a reply
|
||||
// TODO: This isn't working yet
|
||||
const replyTo = [...status.mentions].filter((mention) => mention.id === status.in_reply_to_account_id);
|
||||
if (replyTo.length > 0){
|
||||
text = `Reply to: ${replyTo[0].url}/@${replyTo[0].acct}/${status.in_reply_to_id}\n${text}`;
|
||||
@ -199,4 +200,4 @@ client.get(`/accounts/${process.env.MASTODON_ID}/statuses`, {
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user