diff --git a/lib/mobilizon_web/router.ex b/lib/mobilizon_web/router.ex index 7707dc3b2..bda486b23 100644 --- a/lib/mobilizon_web/router.ex +++ b/lib/mobilizon_web/router.ex @@ -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 diff --git a/lib/service/web_finger/web_finger.ex b/lib/service/web_finger/web_finger.ex index 746bfc7c0..fbde30b09 100644 --- a/lib/service/web_finger/web_finger.ex +++ b/lib/service/web_finger/web_finger.ex @@ -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