mirror of https://gitlab.com/bashrc2/epicyon
To field can be added for multiple activities
parent
eada662691
commit
d9bc4d72aa
13
daemon.py
13
daemon.py
|
@ -1260,15 +1260,10 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
|
|
||||||
originalMessageJson = messageJson.copy()
|
originalMessageJson = messageJson.copy()
|
||||||
|
|
||||||
# For follow activities add a 'to' field, which is a copy
|
addToFieldTypes = ('Follow', 'Like', 'Add', 'Remove')
|
||||||
# of the object field
|
for addToType in addToFieldTypes:
|
||||||
messageJson, toFieldExists = \
|
messageJson, toFieldExists = \
|
||||||
addToField('Follow', messageJson, self.server.debug)
|
addToField(addToType, 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)
|
|
||||||
|
|
||||||
beginSaveTime = time.time()
|
beginSaveTime = time.time()
|
||||||
# save the json for later queue processing
|
# save the json for later queue processing
|
||||||
|
|
Loading…
Reference in New Issue