From 32cc4bc19c960845960a01d447c5b9cfc65fb596 Mon Sep 17 00:00:00 2001 From: nekobit Date: Tue, 11 Oct 2022 03:46:52 +0000 Subject: [PATCH] Fix webfinger reference FossilOrigin-Name: b1e80b7228a5ed7d2214553635759523f003b5bd5868b68c20c7f9ac6f75cb98 --- src/protocol/webfinger/webfinger.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/protocol/webfinger/webfinger.cpp b/src/protocol/webfinger/webfinger.cpp index 685e913..e395c6e 100644 --- a/src/protocol/webfinger/webfinger.cpp +++ b/src/protocol/webfinger/webfinger.cpp @@ -116,15 +116,15 @@ HTTP::Response Route::webfinger(std::any& args, const HTTP::Request& req, const "http://webfinger.net/rel/profile-page", "text/html", {}}, a), a); + // Add activity stream + links.PushBack(make_resource({Instance::instance_host_https(true) + "users/" + acct_str, + "self", + "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"", {}}, a), a); + // Add self page links.PushBack(make_resource({Instance::instance_host_https(true) + "users/" + acct_str, "self", "application/activity+json", {}}, a), a); - - // Add activity stream - links.PushBack(make_resource({Instance::instance_host_https(true) + "users/" + acct_str, - "http://webfinger.net/rel/profile-page", - "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"", {}}, a), a); root.AddMember("links", links.Move(), root.GetAllocator());