diff options
author | Andrew Godwin | 2022-12-17 12:20:00 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-12-17 12:20:00 -0700 |
commit | 1f28361fd9fe7f73b966f5b1c6e36248ce8114b4 (patch) | |
tree | 02e4d883dd54e781444c1ceac6b8a84ef4b0f4d4 /activities/models | |
parent | 0fa5522e6a41e180246634d5487743b642e33989 (diff) | |
download | takahe-1f28361fd9fe7f73b966f5b1c6e36248ce8114b4.tar.gz takahe-1f28361fd9fe7f73b966f5b1c6e36248ce8114b4.tar.bz2 takahe-1f28361fd9fe7f73b966f5b1c6e36248ce8114b4.zip |
Return unreviewed emoji in API correctly
Diffstat (limited to 'activities/models')
-rw-r--r-- | activities/models/emoji.py | 6 |
1 files changed, 5 insertions, 1 deletions
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 |