From 2bf1aa23ee8abbf94256c1d2016109ac368ec063 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Wed, 14 Feb 2024 14:53:03 +1300 Subject: [PATCH] make api/v3/instance return correct images #41 --- app/activitypub/util.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/activitypub/util.py b/app/activitypub/util.py index ae6dfad2..0f43e12e 100644 --- a/app/activitypub/util.py +++ b/app/activitypub/util.py @@ -1276,8 +1276,8 @@ def lemmy_site_data(): "sidebar": site.sidebar, "published": site.created_at.isoformat(), "updated": site.updated.isoformat(), - "icon": "https://lemmy.nz/pictrs/image/d308ef8d-4381-4a7a-b047-569ed5b8dd88.png", - "banner": "https://lemmy.nz/pictrs/image/68beebd5-4e01-44b6-bd4e-008b0d443ac1.png", + "icon": f"https://{current_app.config['SERVER_NAME']}/static/images/logo2.png", + "banner": "", "description": site.description, "actor_id": f"https://{current_app.config['SERVER_NAME']}/", "last_refreshed_at": site.updated.isoformat(), @@ -2274,7 +2274,7 @@ def lemmy_site_data(): person = { "id": admin.id, "name": admin.display_name(), - "avatar": 'https://' + current_app.config['SERVER_NAME'] + admin.avatar_thumbnail(), + "avatar": 'https://' + current_app.config['SERVER_NAME'] + admin.avatar_image(), "banned": admin.banned, "published": admin.created.isoformat(), "actor_id": admin.profile_id(),