mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-01 10:24:46 +00:00
Send update to followers
This commit is contained in:
1 parent
95218f9945
commit
323fec6794
1 file changed
+1
-2
@@ -2263,8 +2263,6 @@ class PubServer(BaseHTTPRequestHandler):
|
||||
# also copy to the actors cache and personCache in memory
|
||||
storePersonInCache(self.server.baseDir,actorJson['id'],actorJson,self.server.personCache)
|
||||
actorCacheFilename=self.server.baseDir+'/cache/actors/'+actorJson['id'].replace('/','#')+'.json'
|
||||
pprint(actorJson)
|
||||
print('*************************updating actor cache: '+actorCacheFilename)
|
||||
with open(actorCacheFilename, 'w') as fp:
|
||||
commentjson.dump(actorJson, fp, indent=4, sort_keys=False)
|
||||
# send actor update to followers
|
||||
@@ -2272,6 +2270,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||
'type': 'Update',
|
||||
'actor': actorJson['id'],
|
||||
'to': ['https://www.w3.org/ns/activitystreams#Public'],
|
||||
'cc': [actorJson['id']+'/followers'],
|
||||
'object': actorJson
|
||||
}
|
||||
self.postToNickname=nickname
|
||||
|
||||
Reference in new issue
Block a user