Return unreviewed emoji in API correctly

This commit is contained in:
Andrew Godwin 2022-12-17 12:20:00 -07:00
parent 0fa5522e6a
commit 1f28361fd9

View file

@ -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