mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
add actor (author?) to Page
This commit is contained in:
parent
f6d1b6d882
commit
7ab91b7dc5
1 changed files with 3 additions and 2 deletions
|
@ -133,14 +133,15 @@ def post_to_activity(post: Post, community: Community):
|
|||
],
|
||||
"object": {
|
||||
"id": create_id,
|
||||
"actor": post.author.ap_public_url,
|
||||
"actor": post.author.profile_id(),
|
||||
"to": [
|
||||
"https://www.w3.org/ns/activitystreams#Public"
|
||||
],
|
||||
"object": {
|
||||
"type": "Page",
|
||||
"id": post.ap_id,
|
||||
"attributedTo": post.author.ap_public_url,
|
||||
"attributedTo": post.author.profile_id(),
|
||||
"actor": post.author.profile_id(),
|
||||
"to": [
|
||||
f"https://{current_app.config['SERVER_NAME']}/c/{community.name}",
|
||||
"https://www.w3.org/ns/activitystreams#Public"
|
||||
|
|
Loading…
Add table
Reference in a new issue