Add pubkey to activity+json '/' Application response

req'd for Lemmy to add PF to their 'site' table
This commit is contained in:
freamon 2024-05-22 16:42:47 +01:00
parent 92cda776fa
commit 9c4f59fcca

View file

@ -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'