diff --git a/app/admin.py b/app/admin.py index 4300613..13d49bb 100644 --- a/app/admin.py +++ b/app/admin.py @@ -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() diff --git a/app/boxes.py b/app/boxes.py index 0b1d59c..ca80966 100644 --- a/app/boxes.py +++ b/app/boxes.py @@ -1721,6 +1721,7 @@ async def _process_transient_object( raw_object: ap.RawObject, from_actor: models.Actor, ) -> None: + # TODO: track featured/pinned objects for actors ap_type = raw_object["type"] if ap_type in ["Add", "Remove"]: logger.info(f"Dropping unsupported {ap_type} object") diff --git a/app/scss/main.scss b/app/scss/main.scss index 1c37459..5145c3e 100644 --- a/app/scss/main.scss +++ b/app/scss/main.scss @@ -202,6 +202,13 @@ footer { margin: 0; } } +.tiny-actor-icon { + max-width: 24px; + max-height: 24px; + margin-right: 5px; + position: relative; + top: 5px; +} .actor-box { display: flex; column-gap: 20px; diff --git a/app/templates/admin_direct_messages.html b/app/templates/admin_direct_messages.html index 5ab99d8..38bc994 100644 --- a/app/templates/admin_direct_messages.html +++ b/app/templates/admin_direct_messages.html @@ -10,7 +10,9 @@ {% for anybox_object, convo, actors in threads %}