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 ### Added
- support for Pleroma
- support for GNU Social - support for GNU Social
- when developing, the API endpoint can now be tested locally thanks to - when developing, the API endpoint can now be tested locally thanks to
[`vite-plugin-node`](https://github.com/axe-me/vite-plugin-node) [`vite-plugin-node`](https://github.com/axe-me/vite-plugin-node)

View File

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

View File

@ -33,7 +33,7 @@
</title> </title>
<meta <meta
name="description" 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 <link
rel="canonical" rel="canonical"
@ -100,7 +100,7 @@
<datalist id="instanceDatalist"></datalist> <datalist id="instanceDatalist"></datalist>
<label> <label>
Choose your Mastodon or GNU Social instance Choose your Mastodon, Pleroma, or GNU Social instance
<input <input
type="url" type="url"
name="instance" name="instance"
@ -135,6 +135,9 @@
<p><b>Supported projects:</b></p> <p><b>Supported projects:</b></p>
<ul> <ul>
<li>Mastodon</li> <li>Mastodon</li>
<li>
Pleroma <small><b>(new!)</b></small>
</li>
<li> <li>
GNU Social <small><b>(new!)</b></small> GNU Social <small><b>(new!)</b></small>
</li> </li>