From 237fd3c408dce0f8d827d3918771cb54b314e85f Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Thu, 18 Apr 2024 14:17:27 +1200 Subject: [PATCH] api/v3/site - correct admin name --- app/activitypub/util.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/activitypub/util.py b/app/activitypub/util.py index a6f00410..042e0fc2 100644 --- a/app/activitypub/util.py +++ b/app/activitypub/util.py @@ -2863,10 +2863,12 @@ def lemmy_site_data(): for admin in Site.admins(): person = { "id": admin.id, - "name": admin.display_name(), + "name": admin.user_name, + "display_name": admin.display_name(), "avatar": 'https://' + current_app.config['SERVER_NAME'] + admin.avatar_image(), "banned": admin.banned, "published": admin.created.isoformat(), + "updated": admin.created.isoformat(), "actor_id": admin.profile_id(), "local": True, "deleted": admin.deleted,