mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-14 03:11:46 +00:00
Return unreviewed emoji in API correctly
This commit is contained in:
parent
0fa5522e6a
commit
1f28361fd9
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue