From 6158fb73a681f3e0ec566c44eab1bb35412f5e8e Mon Sep 17 00:00:00 2001 From: Naomi Carrigan <commits@nhcarrigan.com> Date: Tue, 11 Mar 2025 15:19:34 -0700 Subject: [PATCH] chore: remove fediverse component (#2) ### Explanation _No response_ ### Issue _No response_ ### Attestations - [x] I have read and agree to the [Code of Conduct](https://docs.nhcarrigan.com/community/coc/) - [x] I have read and agree to the [Community Guidelines](https://docs.nhcarrigan.com/community/guide/). - [x] My contribution complies with the [Contributor Covenant](https://docs.nhcarrigan.com/dev/covenant/). ### Dependencies - [x] I have pinned the dependencies to a specific patch version. ### Style - [x] I have run the linter and resolved any errors. - [x] My pull request uses an appropriate title, matching the conventional commit standards. - [x] My scope of feat/fix/chore/etc. correctly matches the nature of changes in my pull request. ### Tests - [ ] My contribution adds new code, and I have added tests to cover it. - [ ] My contribution modifies existing code, and I have updated the tests to reflect these changes. - [ ] All new and existing tests pass locally with my changes. - [ ] Code coverage remains at or above the configured threshold. ### Documentation _No response_ ### Versioning _No response_ Reviewed-on: https://git.nhcarrigan.com/nhcarrigan/mommy-bot/pulls/2 Co-authored-by: Naomi Carrigan <commits@nhcarrigan.com> Co-committed-by: Naomi Carrigan <commits@nhcarrigan.com> --- prod.env | 3 +-- src/index.ts | 15 +-------------- src/server/serve.ts | 3 --- 3 files changed, 2 insertions(+), 19 deletions(-) diff --git a/prod.env b/prod.env index 8ffefc8..4d449f9 100644 --- a/prod.env +++ b/prod.env @@ -4,5 +4,4 @@ SLACK_CLIENT_SECRET="op://Environment Variables - Naomi/Mommy/slack_client_secre SLACK_SIGNING_SECRET="op://Environment Variables - Naomi/Mommy/slack_signing_secret" SLACK_CLIENT_ID="op://Environment Variables - Naomi/Mommy/slack_client_id" BSKY_PASSWORD="op://Environment Variables - Naomi/Mommy/bsky_pass" -SLACK_STATE_SECRET="op://Environment Variables - Naomi/Mommy/slack_state_secret" -FEDI_TOKEN="op://Environment Variables - Naomi/Mommy/mastodon_token" \ No newline at end of file +SLACK_STATE_SECRET="op://Environment Variables - Naomi/Mommy/slack_state_secret" \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index a0bad4e..237fcf0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -74,20 +74,7 @@ scheduleJob("0 9 * * *", async() => { await bsky.post({ text: response, }); - await fetch(`https://fedi.nhcarrigan.com/api/notes/create`, { - body: JSON.stringify({ - text: response, - visibility: "public", - }), - headers: { - // eslint-disable-next-line @typescript-eslint/naming-convention -- Header name. - "Authorization": `Bearer ${process.env.FEDI_TOKEN ?? ""}`, - // eslint-disable-next-line @typescript-eslint/naming-convention -- Header name. - "Content-Type": "application/json", - }, - method: "POST", - }); - await logger.log("info", "Posted to bsky and fedi!"); + await logger.log("info", "Posted to bsky!"); }); serve(); diff --git a/src/server/serve.ts b/src/server/serve.ts index 9b1fc6e..7f414ce 100644 --- a/src/server/serve.ts +++ b/src/server/serve.ts @@ -32,9 +32,6 @@ const html = `<!DOCTYPE html> <a href="https://bsky.app/profile/mommy.naomi.party" class="social-button bluesky-button" style="display: inline-block; background-color: #0085FF; color: white; padding: 10px 20px; text-decoration: none; border-radius: 4px; margin: 5px;"> <i class="fab fa-bluesky"></i> Follow on Bluesky </a> - <a href="https://fedi.nhcarrigan.com/@mommy" class="social-button mastodon-button" style="display: inline-block; background-color: #6364FF; color: white; padding: 10px 20px; text-decoration: none; border-radius: 4px; margin: 5px;"> - <i class="fab fa-mastodon"></i> Follow on Mastodon - </a> </section> <section> <h2>Links</h2>