diff options
author | Vitaly Takmazov | 2021-08-20 11:25:44 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2021-08-20 11:25:44 +0300 |
commit | bab10770a77f5f756a58c4ca6f19dd51e1b492ee (patch) | |
tree | 5461c0ad688c862f48adead0ee34a46d935d159a /src/test/java/com/juick/server/tests | |
parent | d24b3d5ab3d0c3b42f878658fa76aeaeaca4c5a1 (diff) |
map NSFW tag to as:sensitive ActivityPub property
Diffstat (limited to 'src/test/java/com/juick/server/tests')
-rw-r--r-- | src/test/java/com/juick/server/tests/ServerTests.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java index c37d70bc..f8e0f6a8 100644 --- a/src/test/java/com/juick/server/tests/ServerTests.java +++ b/src/test/java/com/juick/server/tests/ServerTests.java @@ -1816,8 +1816,9 @@ public class ServerTests { public void activitySerialization() throws Exception { Message msgNoTags = commandsManager.processCommand(ugnich, "people", emptyUri).getNewMessage().get(); String json = jsonMapper.writeValueAsString(Context.build(activityPubManager.makeNote(msgNoTags))); - Message msg = commandsManager.processCommand(ugnich, "*shit happens", emptyUri).getNewMessage().get(); + Message msg = commandsManager.processCommand(ugnich, "*NSFW *shit happens", emptyUri).getNewMessage().get(); Note note = activityPubManager.makeNote(msg); + assertThat(note.isSensitive(), is(true)); json = jsonMapper.writeValueAsString(Context.build(note)); Note replyNote = new Note(); replyNote.setId("http://localhost:8080/n/2-1"); |