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
|
### 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)
|
||||||
|
|
|
@ -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) => {
|
||||||
|
|
|
@ -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 ‘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
|
<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>
|
||||||
|
|
Reference in a new issue