Set twitter-style possibly_sensitive boolena.

This commit is contained in:
Roger Braun 2017-08-24 16:27:37 +02:00
commit 67bfa19b35
2 changed files with 8 additions and 3 deletions

View file

@ -130,7 +130,8 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenterTest do
"repeated" => false,
"external_url" => "some url",
"tags" => ["content", "mentioning", "nsfw"],
"activity_type" => "post"
"activity_type" => "post",
"possibly_sensitive" => true
}
assert ActivityRepresenter.to_map(activity, %{user: user, for: follower, mentioned: [mentioned_user]}) == expected_status