Remove sensitive-property setting #nsfw, create HashtagPolicy

This commit is contained in:
Haelwenn (lanodan) Monnier 2020-12-28 23:21:53 +01:00
commit 3bc7d12271
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE
15 changed files with 187 additions and 62 deletions

View file

@ -153,15 +153,6 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do
end
end
test "it adds the sensitive property" do
user = insert(:user)
{:ok, activity} = CommonAPI.post(user, %{status: "#nsfw hey"})
{:ok, modified} = Transmogrifier.prepare_outgoing(activity.data)
assert modified["object"]["sensitive"]
end
test "it adds the json-ld context and the conversation property" do
user = insert(:user)