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",
|
Akkoma = "akkoma",
|
||||||
Friendica = "friendica",
|
Friendica = "friendica",
|
||||||
GNUSocial = "gnusocial",
|
GNUSocial = "gnusocial",
|
||||||
|
Hometown = "hometown",
|
||||||
Hubzilla = "hubzilla",
|
Hubzilla = "hubzilla",
|
||||||
Mastodon = "mastodon",
|
Mastodon = "mastodon",
|
||||||
Misskey = "misskey",
|
Misskey = "misskey",
|
||||||
|
|
|
@ -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,
|
||||||
{
|
{
|
||||||
|
|
Reference in a new issue