mirror of
https://github.com/versia-pub/server.git
synced 2026-01-26 04:06:01 +01:00
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:
parent
9e9998ea82
commit
6373b8ae78
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue