Add patch fixing NodeInfo Contnet-Type
This commit is contained in:
parent
ed0bd28123
commit
7defdc9770
2 changed files with 28 additions and 0 deletions
26
patches/pr853_fix_nodeinfo_contenttype.patch
Normal file
26
patches/pr853_fix_nodeinfo_contenttype.patch
Normal file
|
@ -0,0 +1,26 @@
|
|||
From 416aebb76a6b8a307d844f25f8d962830ef0fdff Mon Sep 17 00:00:00 2001
|
||||
From: Oneric <oneric@oneric.stub>
|
||||
Date: Tue, 19 Nov 2024 19:25:31 +0100
|
||||
Subject: [PATCH] Fix NodeInfo content-type
|
||||
|
||||
Fixes: https://akkoma.dev/AkkomaGang/akkoma/issues/852
|
||||
---
|
||||
lib/pleroma/web/nodeinfo/nodeinfo_controller.ex | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/lib/pleroma/web/nodeinfo/nodeinfo_controller.ex b/lib/pleroma/web/nodeinfo/nodeinfo_controller.ex
|
||||
index ea2d86f92..9975b8dbb 100644
|
||||
--- a/lib/pleroma/web/nodeinfo/nodeinfo_controller.ex
|
||||
+++ b/lib/pleroma/web/nodeinfo/nodeinfo_controller.ex
|
||||
@@ -31,7 +31,7 @@ def nodeinfo(conn, %{"version" => version}) when version in ["2.0", "2.1"] do
|
||||
conn
|
||||
|> put_resp_header(
|
||||
"content-type",
|
||||
- "application/json; profile=http://nodeinfo.diaspora.software/ns/schema/2.0#; charset=utf-8"
|
||||
+ "application/json; profile=\"http://nodeinfo.diaspora.software/ns/schema/#{version}#\"; charset=utf-8"
|
||||
)
|
||||
|> json(Nodeinfo.get_nodeinfo(version))
|
||||
end
|
||||
--
|
||||
2.43.0
|
||||
|
|
@ -19,3 +19,5 @@ pr850_ap-anonymous-errata.patch
|
|||
pr844_prune-task-fix-hastag-follows.patch
|
||||
# ObjectAgePolicy is broken, letting unlisted post slip and leaking DMs if sufficiently belated (fortunately rare)
|
||||
pr851_fix-mrf-object-age.patch
|
||||
# Ill-formed COntent-Type profile and wrong version for NodeInfo
|
||||
pr853_fix_nodeinfo_contenttype.patch
|
||||
|
|
Loading…
Reference in a new issue