Implement Hometown support

This commit is contained in:
Nikita Karamov 2023-03-23 22:35:09 +01:00
parent f4506ae4bc
commit 4842d9954f
No known key found for this signature in database
GPG key ID: 41D6F71EE78E77CD
2 changed files with 10 additions and 9 deletions

View file

@ -8,6 +8,7 @@ export enum FediverseProject {
Akkoma = "akkoma",
Friendica = "friendica",
GNUSocial = "gnusocial",
Hometown = "hometown",
Hubzilla = "hubzilla",
Mastodon = "mastodon",
Misskey = "misskey",

View file

@ -14,6 +14,13 @@ interface FediverseProjectData {
};
}
const mastodonSettings = {
publishEndpoint: "share",
params: {
text: "text",
},
};
const pleromaSettings = {
publishEndpoint: "share",
params: {
@ -23,15 +30,8 @@ const pleromaSettings = {
const PROJECTS: Map<FediverseProject, FediverseProjectData> = new Map([
[FediverseProject.Akkoma, pleromaSettings],
[
FediverseProject.Mastodon,
{
publishEndpoint: "share",
params: {
text: "text",
},
},
],
[FediverseProject.Mastodon, mastodonSettings],
[FediverseProject.Hometown, mastodonSettings],
[
FediverseProject.GNUSocial,
{