mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
a bit more #194
This commit is contained in:
parent
a5583dc37e
commit
bd248605d6
1 changed files with 7 additions and 7 deletions
|
@ -880,9 +880,9 @@ def federate_post(community, post):
|
|||
page = {
|
||||
'type': 'Page',
|
||||
'id': post.ap_id,
|
||||
'attributedTo': current_user.ap_profile_id,
|
||||
'attributedTo': current_user.public_url(),
|
||||
'to': [
|
||||
community.ap_profile_id,
|
||||
community.public_url(),
|
||||
'https://www.w3.org/ns/activitystreams#Public'
|
||||
],
|
||||
'name': post.title,
|
||||
|
@ -895,7 +895,7 @@ def federate_post(community, post):
|
|||
'nsfl': post.nsfl,
|
||||
'stickied': post.sticky,
|
||||
'published': ap_datetime(utcnow()),
|
||||
'audience': community.ap_profile_id,
|
||||
'audience': community.public_url(),
|
||||
'language': {
|
||||
'identifier': post.language_code(),
|
||||
'name': post.language_name()
|
||||
|
@ -904,15 +904,15 @@ def federate_post(community, post):
|
|||
}
|
||||
create = {
|
||||
"id": f"https://{current_app.config['SERVER_NAME']}/activities/create/{gibberish(15)}",
|
||||
"actor": current_user.ap_profile_id,
|
||||
"actor": current_user.public_url(),
|
||||
"to": [
|
||||
"https://www.w3.org/ns/activitystreams#Public"
|
||||
],
|
||||
"cc": [
|
||||
community.ap_profile_id
|
||||
community.public_url()
|
||||
],
|
||||
"type": "Create",
|
||||
"audience": community.ap_profile_id,
|
||||
"audience": community.public_url(),
|
||||
"object": page,
|
||||
'@context': default_context()
|
||||
}
|
||||
|
@ -964,7 +964,7 @@ def federate_post(community, post):
|
|||
"to": [
|
||||
"https://www.w3.org/ns/activitystreams#Public"
|
||||
],
|
||||
"actor": community.ap_profile_id,
|
||||
"actor": community.public_url(),
|
||||
"cc": [
|
||||
community.ap_followers_url
|
||||
],
|
||||
|
|
Loading…
Add table
Reference in a new issue