Hide EmojiReact from inbox
parent
7fa455d797
commit
159adaba94
12
app/admin.py
12
app/admin.py
|
@ -300,7 +300,17 @@ async def admin_inbox(
|
|||
) -> templates.TemplateResponse:
|
||||
where = [
|
||||
models.InboxObject.ap_type.not_in(
|
||||
["Accept", "Delete", "Create", "Update", "Undo", "Read", "Add", "Remove"]
|
||||
[
|
||||
"Accept",
|
||||
"Delete",
|
||||
"Create",
|
||||
"Update",
|
||||
"Undo",
|
||||
"Read",
|
||||
"Add",
|
||||
"Remove",
|
||||
"EmojiReact",
|
||||
]
|
||||
),
|
||||
models.InboxObject.is_deleted.is_(False),
|
||||
models.InboxObject.is_transient.is_(False),
|
||||
|
|
|
@ -88,8 +88,11 @@ async def render_template(
|
|||
db_session: AsyncSession,
|
||||
request: Request,
|
||||
template: str,
|
||||
template_args: dict[str, Any] = {},
|
||||
template_args: dict[str, Any] | None = None,
|
||||
) -> TemplateResponse:
|
||||
if template_args is None:
|
||||
template_args = {}
|
||||
|
||||
is_admin = False
|
||||
is_admin = is_current_user_admin(request)
|
||||
|
||||
|
|
Loading…
Reference in New Issue