mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
make api/v3/instance return correct images #41
This commit is contained in:
parent
b812694772
commit
2bf1aa23ee
1 changed files with 3 additions and 3 deletions
|
@ -1276,8 +1276,8 @@ def lemmy_site_data():
|
||||||
"sidebar": site.sidebar,
|
"sidebar": site.sidebar,
|
||||||
"published": site.created_at.isoformat(),
|
"published": site.created_at.isoformat(),
|
||||||
"updated": site.updated.isoformat(),
|
"updated": site.updated.isoformat(),
|
||||||
"icon": "https://lemmy.nz/pictrs/image/d308ef8d-4381-4a7a-b047-569ed5b8dd88.png",
|
"icon": f"https://{current_app.config['SERVER_NAME']}/static/images/logo2.png",
|
||||||
"banner": "https://lemmy.nz/pictrs/image/68beebd5-4e01-44b6-bd4e-008b0d443ac1.png",
|
"banner": "",
|
||||||
"description": site.description,
|
"description": site.description,
|
||||||
"actor_id": f"https://{current_app.config['SERVER_NAME']}/",
|
"actor_id": f"https://{current_app.config['SERVER_NAME']}/",
|
||||||
"last_refreshed_at": site.updated.isoformat(),
|
"last_refreshed_at": site.updated.isoformat(),
|
||||||
|
@ -2274,7 +2274,7 @@ def lemmy_site_data():
|
||||||
person = {
|
person = {
|
||||||
"id": admin.id,
|
"id": admin.id,
|
||||||
"name": admin.display_name(),
|
"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,
|
"banned": admin.banned,
|
||||||
"published": admin.created.isoformat(),
|
"published": admin.created.isoformat(),
|
||||||
"actor_id": admin.profile_id(),
|
"actor_id": admin.profile_id(),
|
||||||
|
|
Loading…
Reference in a new issue