Fixes a webfinger issue, and adds html profile in webfinger query
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
23aac914df
commit
5361371d8a
@ -10,7 +10,7 @@ defmodule MobilizonWeb.Router do
|
||||
end
|
||||
|
||||
pipeline :well_known do
|
||||
plug(:accepts, ["json/application", "jrd-json", "application/json"])
|
||||
plug(:accepts, ["json", "jrd-json"])
|
||||
end
|
||||
|
||||
pipeline :activity_pub do
|
||||
|
@ -52,7 +52,12 @@ defmodule Mobilizon.Service.WebFinger do
|
||||
"subject" => "acct:#{user.preferred_username}@#{MobilizonWeb.Endpoint.host()}",
|
||||
"aliases" => [user.url],
|
||||
"links" => [
|
||||
%{"rel" => "self", "type" => "application/activity+json", "href" => user.url}
|
||||
%{"rel" => "self", "type" => "application/activity+json", "href" => user.url},
|
||||
%{
|
||||
"rel" => "https://webfinger.net/rel/profile-page/",
|
||||
"type" => "text/html",
|
||||
"href" => user.url
|
||||
}
|
||||
]
|
||||
}
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user