More actor icons

This commit is contained in:
Thomas Sileo 2022-08-26 07:43:39 +02:00
parent 365e6cc534
commit 63073279e1
7 changed files with 23 additions and 4 deletions

View file

@ -776,6 +776,8 @@ async def admin_profile(
actor_id: str,
db_session: AsyncSession = Depends(get_db_session),
) -> templates.TemplateResponse:
# TODO: pagination + show featured/pinned
actor = (
await db_session.execute(
select(models.Actor).where(models.Actor.ap_id == actor_id)
@ -809,6 +811,7 @@ async def admin_profile(
joinedload(models.InboxObject.actor),
)
.order_by(models.InboxObject.ap_published_at.desc())
.limit(20)
)
)
.unique()