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", Akkoma = "akkoma",
Friendica = "friendica", Friendica = "friendica",
GNUSocial = "gnusocial", GNUSocial = "gnusocial",
Hometown = "hometown",
Hubzilla = "hubzilla", Hubzilla = "hubzilla",
Mastodon = "mastodon", Mastodon = "mastodon",
Misskey = "misskey", Misskey = "misskey",

View file

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