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. * 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",

View File

@ -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,
{ {

View File

@ -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>