mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
Add pubkey to activity+json '/' Application response
req'd for Lemmy to add PF to their 'site' table
This commit is contained in:
parent
92cda776fa
commit
9c4f59fcca
1 changed files with 9 additions and 0 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Reference in a new issue