mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
Bugfix: public_url() in inner object of Updates too to avoid remote verification failures
This commit is contained in:
parent
ab0a1816b3
commit
b73b6fdcae
1 changed files with 3 additions and 3 deletions
|
@ -1008,9 +1008,9 @@ def federate_post_update(post):
|
|||
page_json = {
|
||||
'type': 'Page',
|
||||
'id': post.ap_id,
|
||||
'attributedTo': current_user.ap_profile_id,
|
||||
'attributedTo': current_user.public_url(),
|
||||
'to': [
|
||||
post.community.ap_profile_id,
|
||||
post.community.public_url(),
|
||||
'https://www.w3.org/ns/activitystreams#Public'
|
||||
],
|
||||
'name': post.title,
|
||||
|
@ -1024,7 +1024,7 @@ def federate_post_update(post):
|
|||
'stickied': post.sticky,
|
||||
'published': ap_datetime(post.posted_at),
|
||||
'updated': ap_datetime(post.edited_at),
|
||||
'audience': post.community.ap_profile_id,
|
||||
'audience': post.community.public_url(),
|
||||
'language': {
|
||||
'identifier': post.language_code(),
|
||||
'name': post.language_name()
|
||||
|
|
Loading…
Add table
Reference in a new issue