Detect Akkoma as Pleroma
This commit is contained in:
parent
43e84ea53e
commit
f4506ae4bc
3 changed files with 11 additions and 10 deletions
|
@ -5,6 +5,7 @@
|
||||||
* as the icon names, etc.
|
* as the icon names, etc.
|
||||||
*/
|
*/
|
||||||
export enum FediverseProject {
|
export enum FediverseProject {
|
||||||
|
Akkoma = "akkoma",
|
||||||
Friendica = "friendica",
|
Friendica = "friendica",
|
||||||
GNUSocial = "gnusocial",
|
GNUSocial = "gnusocial",
|
||||||
Hubzilla = "hubzilla",
|
Hubzilla = "hubzilla",
|
||||||
|
|
|
@ -14,7 +14,15 @@ interface FediverseProjectData {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const pleromaSettings = {
|
||||||
|
publishEndpoint: "share",
|
||||||
|
params: {
|
||||||
|
text: "message",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
const PROJECTS: Map<FediverseProject, FediverseProjectData> = new Map([
|
const PROJECTS: Map<FediverseProject, FediverseProjectData> = new Map([
|
||||||
|
[FediverseProject.Akkoma, pleromaSettings],
|
||||||
[
|
[
|
||||||
FediverseProject.Mastodon,
|
FediverseProject.Mastodon,
|
||||||
{
|
{
|
||||||
|
@ -33,15 +41,7 @@ const PROJECTS: Map<FediverseProject, FediverseProjectData> = new Map([
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[FediverseProject.Pleroma, pleromaSettings],
|
||||||
FediverseProject.Pleroma,
|
|
||||||
{
|
|
||||||
publishEndpoint: "share",
|
|
||||||
params: {
|
|
||||||
text: "message",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
[
|
[
|
||||||
FediverseProject.Friendica,
|
FediverseProject.Friendica,
|
||||||
{
|
{
|
||||||
|
|
|
@ -101,7 +101,7 @@ const prefilledInstance = searchParameters.get("instance");
|
||||||
<ul>
|
<ul>
|
||||||
<li>Mastodon</li>
|
<li>Mastodon</li>
|
||||||
<li>
|
<li>
|
||||||
Pleroma <small><b>(new!)</b></small>
|
Pleroma (incl. Akkoma) <small><b>(new!)</b></small>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
Misskey <small><b>(new!)</b></small>
|
Misskey <small><b>(new!)</b></small>
|
||||||
|
|
Reference in a new issue