mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-01 18:29:54 +00:00
To field can be added for multiple activities
This commit is contained in:
1 parent
eada662691
commit
d9bc4d72aa
1 file changed
+4
-9
@@ -1260,15 +1260,10 @@ class PubServer(BaseHTTPRequestHandler):
|
||||
|
||||
originalMessageJson = messageJson.copy()
|
||||
|
||||
# For follow activities add a 'to' field, which is a copy
|
||||
# of the object field
|
||||
messageJson, toFieldExists = \
|
||||
addToField('Follow', messageJson, self.server.debug)
|
||||
|
||||
# For like activities add a 'to' field, which is a copy of
|
||||
# the actor within the object field
|
||||
messageJson, toFieldExists = \
|
||||
addToField('Like', messageJson, self.server.debug)
|
||||
addToFieldTypes = ('Follow', 'Like', 'Add', 'Remove')
|
||||
for addToType in addToFieldTypes:
|
||||
messageJson, toFieldExists = \
|
||||
addToField(addToType, messageJson, self.server.debug)
|
||||
|
||||
beginSaveTime = time.time()
|
||||
# save the json for later queue processing
|
||||
|
||||
Reference in new issue
Block a user