aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/ActivityPubManager.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2021-08-20 11:25:44 +0300
committerGravatar Vitaly Takmazov2021-08-20 11:25:44 +0300
commitbab10770a77f5f756a58c4ca6f19dd51e1b492ee (patch)
tree5461c0ad688c862f48adead0ee34a46d935d159a /src/main/java/com/juick/ActivityPubManager.java
parentd24b3d5ab3d0c3b42f878658fa76aeaeaca4c5a1 (diff)
map NSFW tag to as:sensitive ActivityPub property
Diffstat (limited to 'src/main/java/com/juick/ActivityPubManager.java')
-rw-r--r--src/main/java/com/juick/ActivityPubManager.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/com/juick/ActivityPubManager.java b/src/main/java/com/juick/ActivityPubManager.java
index ad887819..8aa2ef78 100644
--- a/src/main/java/com/juick/ActivityPubManager.java
+++ b/src/main/java/com/juick/ActivityPubManager.java
@@ -354,6 +354,7 @@ public class ActivityPubManager implements ActivityListener, NotificationListene
note.setCc(cc);
}
});
+ note.setSensitive(MessageUtils.isSensitive(msg));
if (msg.isHtml()) {
note.setContent(msg.getText());
} else {