subs ++
Enum.map(links, fn {uuid, url} ->
{:safe, link} = Phoenix.HTML.Link.link(url, to: url)
- link = link
- |> IO.iodata_to_binary
+
+ link =
+ link
+ |> IO.iodata_to_binary()
+
{uuid, link}
end)
additional: %{"cc" => cc}
})
- User.increase_note_count(user)
res
end
end
"tag:mastodon.example.org,2018-02-12:objectId=20:objectType=Conversation"
assert object["sensitive"] == true
+
+ user = User.get_by_ap_id(object["actor"])
+
+ assert user.info["note_count"] == 1
end
test "it works for incoming notices with hashtags" do