mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-10-31 10:01:48 +00:00
Add an id to actor updates
This commit is contained in:
1 parent
fa7741a650
commit
a2796e405f
1 file changed
+5
-3
@@ -4517,13 +4517,15 @@ class PubServer(BaseHTTPRequestHandler):
|
||||
actorJson['id'].replace('/', '#') + '.json'
|
||||
saveJson(actorJson, actorCacheFilename)
|
||||
# send profile update to followers
|
||||
ccStr = 'https://www.w3.org/ns/' + \
|
||||
pubStr = 'https://www.w3.org/ns/' + \
|
||||
'activitystreams#Public'
|
||||
pubNumber, pubDate = getStatusNumber()
|
||||
updateActorJson = {
|
||||
'id': actorJson['id'] + '#updates/' + pubNumber,
|
||||
'type': 'Update',
|
||||
'actor': actorJson['id'],
|
||||
'to': [actorJson['id'] + '/followers'],
|
||||
'cc': [ccStr],
|
||||
'to': [pubStr],
|
||||
'cc': [actorJson['id'] + '/followers'],
|
||||
'object': actorJson
|
||||
}
|
||||
self._postToOutbox(updateActorJson,
|
||||
|
||||
Reference in new issue
Block a user