From c3a481b5924ecd9b0cc5fbfe8735f2c39311503e Mon Sep 17 00:00:00 2001 From: Elizabeth Cray Date: Sat, 1 Feb 2025 04:40:38 +0000 Subject: [PATCH] Add todo --- index.mjs | 3 ++- run.sh | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) mode change 100644 => 100755 run.sh diff --git a/index.mjs b/index.mjs index 7c16c42..0e0179a 100644 --- a/index.mjs +++ b/index.mjs @@ -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`, { } } } -}); \ No newline at end of file +}); diff --git a/run.sh b/run.sh old mode 100644 new mode 100755 index 94fcfcb..922972a --- a/run.sh +++ b/run.sh @@ -1,3 +1,3 @@ #!/bin/bash -/usr/bin/node index.mjs -rm .temp_* \ No newline at end of file +/usr/bin/node /home/liz/m2b/index.mjs +rm .temp_*