Fix webfinger reference
FossilOrigin-Name: b1e80b7228a5ed7d2214553635759523f003b5bd5868b68c20c7f9ac6f75cb98
This commit is contained in:
parent
98917266fa
commit
32cc4bc19c
1 changed files with 5 additions and 5 deletions
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in a new issue