From 84af92f7e7ec94b544a32b850dc659c41e2d2a27 Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Mon, 28 Aug 2023 01:11:45 +0200 Subject: [PATCH] Remove Pleroma support Apparently, there is no endpoint in Pleroma-FE that we could use :( See also: https://github.com/kytta/share2fedi/issues/44 --- CHANGELOG.md | 1 - README.md | 2 +- src/i18n/translations.ts | 6 +++--- src/layouts/layout.astro | 2 +- src/pages/api/detect/[domain].ts | 9 --------- src/pages/index.astro | 3 --- src/scripts/constants.ts | 2 -- 7 files changed, 5 insertions(+), 20 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a7802d6..3dfa8ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,7 +33,6 @@ Some changes came with the name change: - GNU Social - Hubzilla - Misskey (+ flavours) - - Pleroma (+ flavours) - **new ways to host** - Netlify - Cloudflare Pages diff --git a/README.md b/README.md index e561280..dbcdedf 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ > Instance-agnostic share page for the Fediverse. **[Share₂Fedi]** (pronounced ‘share-to-fedi’) allows you to share stuff on -Mastodon, GoToSocial, Pleroma, and other federated social networks, +Mastodon, Misskey, Friendica, and other federated social networks, instance-agnostic. Just type in the post text and the instance URL, and click ‘Post!’ diff --git a/src/i18n/translations.ts b/src/i18n/translations.ts index 8a0c77f..f5285cd 100644 --- a/src/i18n/translations.ts +++ b/src/i18n/translations.ts @@ -8,7 +8,7 @@ export const strings: Record> = { en: { title: "Share₂Fedi — an instance-agnostic share page for the Fediverse", metaDescription: - "Share₂Fedi is a share page for Mastodon, Pleroma, Misskey, and others. Type in your post text and the instance URL and click ‘Publish!’", + "Share₂Fedi is a share page for Mastodon, Misskey, Friendica, and others. Type in your post text and the instance URL and click ‘Publish!’", language: "Language:", description: "Share₂Fedi is an instance-agnostic share page for {}. With it, you can post to various federated platforms from a single page.", @@ -32,7 +32,7 @@ export const strings: Record> = { de: { title: "Share₂Fedi — eine instanzunabhängige Share-Seite für das Fediverse", metaDescription: - "Share₂Fedi ist eine Share-Seite für Mastodon, Pleroma, Misskey und andere. Geben Sie Ihren Beitragstext und die Instanz-URL ein und klicken Sie auf „Veröffentlichen“!", + "Share₂Fedi ist eine Share-Seite für Mastodon, Misskey, Friendica und andere. Geben Sie Ihren Beitragstext und die Instanz-URL ein und klicken Sie auf „Veröffentlichen“!", language: "Sprache:", description: "Share₂Fedi ist eine instanzunabhängige Share-Seite für {}. Mit ihr können Sie von einer einzigen Seite aus auf verschiedenen föderierten Plattformen posten.", @@ -56,7 +56,7 @@ export const strings: Record> = { ru: { title: "Share₂Fedi — инстанс-независимая share-страница для Федивёрса", metaDescription: - "Share₂Fedi — это share-страница для Mastodon, Pleroma, Misskey и других сервисов. Введите текст поста и URL-адрес инстанса и нажмите «Опубликовать!».", + "Share₂Fedi — это share-страница для Mastodon, Misskey, Friendica и других сервисов. Введите текст поста и URL-адрес инстанса и нажмите «Опубликовать!».", language: "Язык:", description: "Share₂Fedi — это инстанс-независимая share-страница для {}. С её помощью вы можете делиться информацией на различных федеративных платформах с одной страницы.", diff --git a/src/layouts/layout.astro b/src/layouts/layout.astro index fdd1ec0..f3fe73f 100644 --- a/src/layouts/layout.astro +++ b/src/layouts/layout.astro @@ -19,7 +19,7 @@ const { title } = Astro.props; {title} diff --git a/src/pages/api/detect/[domain].ts b/src/pages/api/detect/[domain].ts index a3f83d3..413e4c5 100644 --- a/src/pages/api/detect/[domain].ts +++ b/src/pages/api/detect/[domain].ts @@ -28,13 +28,6 @@ const misskeySettings = { }, }; -const pleromaSettings = { - publishEndpoint: "share", - params: { - text: "message", - }, -}; - const PROJECTS: Map = new Map() .set(FediverseProject.Mastodon, mastodonSettings) .set(FediverseProject.Fedibird, mastodonSettings) @@ -45,8 +38,6 @@ const PROJECTS: Map = new Map() .set(FediverseProject.Firefish, misskeySettings) .set(FediverseProject.FoundKey, misskeySettings) .set(FediverseProject.Meisskey, misskeySettings) - .set(FediverseProject.Akkoma, pleromaSettings) - .set(FediverseProject.Pleroma, pleromaSettings) .set(FediverseProject.GNUSocial, { publishEndpoint: "/notice/new", params: { diff --git a/src/pages/index.astro b/src/pages/index.astro index e0bacd5..01f49d2 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -48,9 +48,6 @@ const prefilledInstance = searchParameters.get("instance"); Mastodon (incl. Hometown, Fedibird, GlitchCafé) -
  • - Pleroma (incl. Akkoma) -
  • Misskey (incl. Firefish/Calckey, FoundKey, Meisskey) diff --git a/src/scripts/constants.ts b/src/scripts/constants.ts index ac67ee5..74e04f9 100644 --- a/src/scripts/constants.ts +++ b/src/scripts/constants.ts @@ -5,7 +5,6 @@ * as the icon names, etc. */ export enum FediverseProject { - Akkoma = "akkoma", Calckey = "calckey", GlitchCafe = "glitchcafe", Fedibird = "fedibird", @@ -18,5 +17,4 @@ export enum FediverseProject { Mastodon = "mastodon", Meisskey = "meisskey", Misskey = "misskey", - Pleroma = "pleroma", }