mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 09:57:29 -07:00
Fix Mastodon compatibility string
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
141ab4a96b
commit
081a3177b8
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
import { Entity } from "megalodon";
|
import { Entity } from "megalodon";
|
||||||
|
import config from "@/config/index.js";
|
||||||
import { fetchMeta } from "@/misc/fetch-meta.js";
|
import { fetchMeta } from "@/misc/fetch-meta.js";
|
||||||
import { Users, Notes } from "@/models/index.js";
|
import { Users, Notes } from "@/models/index.js";
|
||||||
import { IsNull, MoreThan } from "typeorm";
|
import { IsNull, MoreThan } from "typeorm";
|
||||||
|
@ -17,7 +18,7 @@ export async function getInstance(response: Entity.Instance) {
|
||||||
response.description ||
|
response.description ||
|
||||||
"This is a vanilla Calckey Instance. It doesnt seem to have a description. BTW you are using the Mastodon api to access this server :)",
|
"This is a vanilla Calckey Instance. It doesnt seem to have a description. BTW you are using the Mastodon api to access this server :)",
|
||||||
email: response.email || "",
|
email: response.email || "",
|
||||||
version: "3.0.0 compatible (3.5+ Calckey)", //I hope this version string is correct, we will need to test it.
|
version: `3.0.0 (compatible; Calckey ${config.version})`,
|
||||||
urls: response.urls,
|
urls: response.urls,
|
||||||
stats: {
|
stats: {
|
||||||
user_count: await totalUsers,
|
user_count: await totalUsers,
|
||||||
|
|
Loading…
Reference in a new issue