fix(api): 🐛 Spoof server as Mastodon 4.3.0 for clients that selectively enable features based off of the version

This commit is contained in:
Jesse Wierzbinski 2024-04-24 18:31:27 -10:00
parent 9e9998ea82
commit 6373b8ae78
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -114,7 +114,7 @@ export default apiRoute(async (req, matchedRoute, extraData) => {
urls: {
streaming_api: "",
},
version: `4.3.0+glitch (compatible; Lysand ${version}})`,
version: `4.3.0+glitch (compatible; Mastodon ${version}})`,
pleroma: {
metadata: {
account_activation_required: false,

View file

@ -52,7 +52,7 @@ export default apiRoute(async (req, matchedRoute, extraData) => {
return jsonResponse({
domain: new URL(config.http.base_url).hostname,
title: config.instance.name,
version: `4.3.0+glitch (compatible; Lysand ${version}})`,
version: `4.3.0+glitch (compatible; Mastodon ${version}})`,
source_url: "https://github.com/lysand-org/lysand",
description: config.instance.description,
usage: {