Merge branch 'feature/webfinger-mime-ld-json' into 'develop'

webfinger: handle application/ld+json links

See merge request pleroma/pleroma!159
This commit is contained in:
lambda 2018-05-19 09:31:08 +00:00
commit 7831b38705
4 changed files with 29 additions and 0 deletions

View file

@ -49,6 +49,14 @@ defmodule Pleroma.Web.WebFingerTest do
{:ok, _data} = WebFinger.finger(user)
end
test "returns the ActivityPub actor URI for an ActivityPub user with the ld+json mimetype" do
user = "kaniini@gerzilla.de"
{:ok, data} = WebFinger.finger(user)
assert data["ap_id"] == "https://gerzilla.de/channel/kaniini"
end
test "returns the correctly for json ostatus users" do
user = "winterdienst@gnusocial.de"