Small cleanup.
This commit is contained in:
parent
114ca9e069
commit
0574df273c
@ -169,8 +169,11 @@ defmodule Pleroma.Formatter do
|
|||||||
subs ++
|
subs ++
|
||||||
Enum.map(links, fn {uuid, url} ->
|
Enum.map(links, fn {uuid, url} ->
|
||||||
{:safe, link} = Phoenix.HTML.Link.link(url, to: url)
|
{:safe, link} = Phoenix.HTML.Link.link(url, to: url)
|
||||||
link = link
|
|
||||||
|> IO.iodata_to_binary
|
link =
|
||||||
|
link
|
||||||
|
|> IO.iodata_to_binary()
|
||||||
|
|
||||||
{uuid, link}
|
{uuid, link}
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
@ -103,7 +103,6 @@ defmodule Pleroma.Web.CommonAPI do
|
|||||||
additional: %{"cc" => cc}
|
additional: %{"cc" => cc}
|
||||||
})
|
})
|
||||||
|
|
||||||
User.increase_note_count(user)
|
|
||||||
res
|
res
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -89,6 +89,10 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do
|
|||||||
"tag:mastodon.example.org,2018-02-12:objectId=20:objectType=Conversation"
|
"tag:mastodon.example.org,2018-02-12:objectId=20:objectType=Conversation"
|
||||||
|
|
||||||
assert object["sensitive"] == true
|
assert object["sensitive"] == true
|
||||||
|
|
||||||
|
user = User.get_by_ap_id(object["actor"])
|
||||||
|
|
||||||
|
assert user.info["note_count"] == 1
|
||||||
end
|
end
|
||||||
|
|
||||||
test "it works for incoming notices with hashtags" do
|
test "it works for incoming notices with hashtags" do
|
||||||
|
Loading…
Reference in New Issue
Block a user