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.
|
||||
*/
|
||||
export enum FediverseProject {
|
||||
Akkoma = "akkoma",
|
||||
Friendica = "friendica",
|
||||
GNUSocial = "gnusocial",
|
||||
Hubzilla = "hubzilla",
|
||||
|
|
|
@ -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,
|
||||
{
|
||||
|
|
|
@ -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>
|
||||
|
|
Reference in a new issue