Add `rel="ugc"`
authorkPherox <admin@mail.kr-kp.com>
Mon, 30 Sep 2019 17:24:06 +0000 (02:24 +0900)
committerkPherox <admin@mail.kr-kp.com>
Mon, 30 Sep 2019 17:24:06 +0000 (02:24 +0900)
test/web/mastodon_api/controllers/account_controller/update_credentials_test.exs

index cdbacf46be3e49c03b547f801a72ed0dd403dbc9..599cd61c811cae81dbf8eee80512de389b88022d 100644 (file)
@@ -362,7 +362,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController.UpdateCredentialsTest do
 
       assert account["fields"] == [
                %{"name" => "foo", "value" => "bar"},
-               %{"name" => "link", "value" => "<a href=\"http://cofe.io\">cofe.io</a>"}
+               %{"name" => "link", "value" => ~S(<a href="http://cofe.io" rel="ugc">cofe.io</a>)}
              ]
 
       assert account["source"]["fields"] == [