fetch url for OStatus to know if it is a/c or status

This commit is contained in:
Sachin Joshi 2019-04-02 10:26:09 +05:45
commit 6386c1c9c1
6 changed files with 377 additions and 108 deletions

View file

@ -180,5 +180,15 @@ defmodule Pleroma.Web.TwitterAPI.UtilControllerTest do
assert redirected_to(conn) =~ "/notice/"
end
test "show follow account page if the `acct` is a account link", %{conn: conn} do
response =
get(
conn,
"/ostatus_subscribe?acct=https://mastodon.social/users/emelie"
)
assert html_response(response, 200) =~ "Log in to follow"
end
end
end