Fixed some things

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2018-11-07 16:09:28 +01:00
parent 74bc21fa2c
commit 0585b9e6d5
7 changed files with 43 additions and 20 deletions

View File

@@ -49,7 +49,7 @@ defmodule Mobilizon.Service.WebFinger do
def represent_user(user, "JSON") do
%{
"subject" => "acct:#{user.preferred_username}@#{MobilizonWeb.Endpoint.host() <> ":4001"}",
"subject" => "acct:#{user.preferred_username}@#{MobilizonWeb.Endpoint.host()}",
"aliases" => [user.url],
"links" => [
%{"rel" => "self", "type" => "application/activity+json", "href" => user.url}