Return unreviewed emoji in API correctly
This commit is contained in:
parent
0fa5522e6a
commit
1f28361fd9
@ -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
|
||||
|
Reference in New Issue
Block a user