From 9c4f59fcca495ff380f37cdb7488ac86bccba58f Mon Sep 17 00:00:00 2001 From: freamon Date: Wed, 22 May 2024 16:42:47 +0100 Subject: [PATCH] Add pubkey to activity+json '/' Application response req'd for Lemmy to add PF to their 'site' table --- app/main/routes.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/main/routes.py b/app/main/routes.py index 4e805eb8..b3ce8932 100644 --- a/app/main/routes.py +++ b/app/main/routes.py @@ -429,6 +429,15 @@ def activitypub_application(): 'updated': ap_datetime(g.site.updated), 'inbox': f"https://{current_app.config['SERVER_NAME']}/site_inbox", 'outbox': f"https://{current_app.config['SERVER_NAME']}/site_outbox", + 'icon': { + 'type': 'Image', + 'url': f"https://{current_app.config['SERVER_NAME']}/static/images/logo2.png" + }, + 'publicKey': { + 'id': f"https://{current_app.config['SERVER_NAME']}/#main-key", + 'owner': f"https://{current_app.config['SERVER_NAME']}/", + 'publicKeyPem': g.site.public_key + } } resp = jsonify(application_data) resp.content_type = 'application/activity+json'