Implement Hometown support
This commit is contained in:
parent
f4506ae4bc
commit
4842d9954f
2 changed files with 10 additions and 9 deletions
|
@ -8,6 +8,7 @@ export enum FediverseProject {
|
|||
Akkoma = "akkoma",
|
||||
Friendica = "friendica",
|
||||
GNUSocial = "gnusocial",
|
||||
Hometown = "hometown",
|
||||
Hubzilla = "hubzilla",
|
||||
Mastodon = "mastodon",
|
||||
Misskey = "misskey",
|
||||
|
|
|
@ -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,
|
||||
{
|
||||
|
|
Reference in a new issue