Detect Akkoma as Pleroma

This commit is contained in:
Nikita Karamov 2023-03-19 18:30:00 +01:00
parent 43e84ea53e
commit f4506ae4bc
No known key found for this signature in database
GPG key ID: 41D6F71EE78E77CD
3 changed files with 11 additions and 10 deletions

View file

@ -5,6 +5,7 @@
* as the icon names, etc.
*/
export enum FediverseProject {
Akkoma = "akkoma",
Friendica = "friendica",
GNUSocial = "gnusocial",
Hubzilla = "hubzilla",

View file

@ -14,7 +14,15 @@ interface FediverseProjectData {
};
}
const pleromaSettings = {
publishEndpoint: "share",
params: {
text: "message",
},
};
const PROJECTS: Map<FediverseProject, FediverseProjectData> = new Map([
[FediverseProject.Akkoma, pleromaSettings],
[
FediverseProject.Mastodon,
{
@ -33,15 +41,7 @@ const PROJECTS: Map<FediverseProject, FediverseProjectData> = new Map([
},
},
],
[
FediverseProject.Pleroma,
{
publishEndpoint: "share",
params: {
text: "message",
},
},
],
[FediverseProject.Pleroma, pleromaSettings],
[
FediverseProject.Friendica,
{

View file

@ -101,7 +101,7 @@ const prefilledInstance = searchParameters.get("instance");
<ul>
<li>Mastodon</li>
<li>
Pleroma <small><b>(new!)</b></small>
Pleroma (incl. Akkoma) <small><b>(new!)</b></small>
</li>
<li>
Misskey <small><b>(new!)</b></small>