Add support for Pleroma
This commit is contained in:
parent
7f107b408d
commit
48e6fc3fc7
3 changed files with 12 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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) => {
|
||||
|
|
|
@ -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 ‘Publish!’"
|
||||
content="Share₂Fedi is a share page for Mastodon, Pleroma, and GNU Social. Type in your post text and the instance URL and click ‘Publish!’"
|
||||
/>
|
||||
<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>
|
||||
|
|
Reference in a new issue