Add support for Pleroma

This commit is contained in:
Nikita Karamov 2023-03-17 14:08:08 +01:00
parent 7f107b408d
commit 48e6fc3fc7
No known key found for this signature in database
GPG key ID: 41D6F71EE78E77CD
3 changed files with 12 additions and 3 deletions

View file

@ -20,6 +20,7 @@ as to indicate that sharing to other federated networks is now possible.
### Added
- support for Pleroma
- support for GNU Social
- when developing, the API endpoint can now be tested locally thanks to
[`vite-plugin-node`](https://github.com/axe-me/vite-plugin-node)

View file

@ -23,7 +23,7 @@ import https from "https";
const pathsMap = {
mastodon: {
checkUrl: "/api/v1/instance",
checkUrl: "/api/v1/instance/rules",
postUrl: "share",
textParam: "text",
},
@ -32,6 +32,11 @@ const pathsMap = {
postUrl: "/notice/new",
textParam: "status_textarea",
},
pleroma: {
checkUrl: "/api/v1/pleroma/federation_status",
postUrl: "share",
textParam: "message",
},
};
const queryUrl = (url, service) => {

View file

@ -33,7 +33,7 @@
</title>
<meta
name="description"
content="Share₂Fedi is a share page for Mastodon and GNU Social. Type in your post text and the instance URL and click &lsquo;Publish!&rsquo;"
content="Share₂Fedi is a share page for Mastodon, Pleroma, and GNU Social. Type in your post text and the instance URL and click &lsquo;Publish!&rsquo;"
/>
<link
rel="canonical"
@ -100,7 +100,7 @@
<datalist id="instanceDatalist"></datalist>
<label>
Choose your Mastodon or GNU Social instance
Choose your Mastodon, Pleroma, or GNU Social instance
<input
type="url"
name="instance"
@ -135,6 +135,9 @@
<p><b>Supported projects:</b></p>
<ul>
<li>Mastodon</li>
<li>
Pleroma <small><b>(new!)</b></small>
</li>
<li>
GNU Social <small><b>(new!)</b></small>
</li>