Return unreviewed emoji in API correctly

pull/184/head
Andrew Godwin 2022-12-17 12:20:00 -07:00
rodzic 0fa5522e6a
commit 1f28361fd9
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

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