From 1f28361fd9fe7f73b966f5b1c6e36248ce8114b4 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sat, 17 Dec 2022 12:20:00 -0700 Subject: [PATCH] Return unreviewed emoji in API correctly --- activities/models/emoji.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/activities/models/emoji.py b/activities/models/emoji.py index 8af28e3..441be22 100644 --- a/activities/models/emoji.py +++ b/activities/models/emoji.py @@ -255,7 +255,11 @@ class Emoji(StatorModel): "shortcode": self.shortcode, "url": url, "static_url": self.remote_url or url, - "visible_in_picker": self.public, + "visible_in_picker": ( + Config.system.emoji_unreviewed_are_public + if self.public is None + else self.public + ), "category": self.category or "", } return data