mirror of https://gitlab.com/bashrc2/epicyon
Set published and updated dates on edited posts
parent
ff982c366c
commit
63b7d81c3d
33
daemon.py
33
daemon.py
|
@ -19448,12 +19448,23 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.server.translate)
|
self.server.translate)
|
||||||
if message_json:
|
if message_json:
|
||||||
if edited_postid:
|
if edited_postid:
|
||||||
|
edited_updated = \
|
||||||
|
message_json['object']['published']
|
||||||
|
if edited_published:
|
||||||
|
message_json['published'] = \
|
||||||
|
edited_published
|
||||||
|
message_json['object']['published'] = \
|
||||||
|
edited_published
|
||||||
message_json['id'] = \
|
message_json['id'] = \
|
||||||
edited_postid + '/activity'
|
edited_postid + '/activity'
|
||||||
message_json['object']['id'] = \
|
message_json['object']['id'] = \
|
||||||
edited_postid
|
edited_postid
|
||||||
message_json['object']['url'] = \
|
message_json['object']['url'] = \
|
||||||
edited_postid
|
edited_postid
|
||||||
|
message_json['updated'] = \
|
||||||
|
edited_updated
|
||||||
|
message_json['object']['updated'] = \
|
||||||
|
edited_updated
|
||||||
message_json['type'] = 'Update'
|
message_json['type'] = 'Update'
|
||||||
print('DEBUG: sending edited public post ' +
|
print('DEBUG: sending edited public post ' +
|
||||||
str(message_json))
|
str(message_json))
|
||||||
|
@ -19714,12 +19725,23 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.server.translate)
|
self.server.translate)
|
||||||
if message_json:
|
if message_json:
|
||||||
if edited_postid:
|
if edited_postid:
|
||||||
|
edited_updated = \
|
||||||
|
message_json['object']['published']
|
||||||
|
if edited_published:
|
||||||
|
message_json['published'] = \
|
||||||
|
edited_published
|
||||||
|
message_json['object']['published'] = \
|
||||||
|
edited_published
|
||||||
message_json['id'] = \
|
message_json['id'] = \
|
||||||
edited_postid + '/activity'
|
edited_postid + '/activity'
|
||||||
message_json['object']['id'] = \
|
message_json['object']['id'] = \
|
||||||
edited_postid
|
edited_postid
|
||||||
message_json['object']['url'] = \
|
message_json['object']['url'] = \
|
||||||
edited_postid
|
edited_postid
|
||||||
|
message_json['updated'] = \
|
||||||
|
edited_updated
|
||||||
|
message_json['object']['updated'] = \
|
||||||
|
edited_updated
|
||||||
message_json['type'] = 'Update'
|
message_json['type'] = 'Update'
|
||||||
print('DEBUG: sending edited unlisted post ' +
|
print('DEBUG: sending edited unlisted post ' +
|
||||||
str(message_json))
|
str(message_json))
|
||||||
|
@ -19786,12 +19808,23 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.server.translate)
|
self.server.translate)
|
||||||
if message_json:
|
if message_json:
|
||||||
if edited_postid:
|
if edited_postid:
|
||||||
|
edited_updated = \
|
||||||
|
message_json['object']['published']
|
||||||
|
if edited_published:
|
||||||
|
message_json['published'] = \
|
||||||
|
edited_published
|
||||||
|
message_json['object']['published'] = \
|
||||||
|
edited_published
|
||||||
message_json['id'] = \
|
message_json['id'] = \
|
||||||
edited_postid + '/activity'
|
edited_postid + '/activity'
|
||||||
message_json['object']['id'] = \
|
message_json['object']['id'] = \
|
||||||
edited_postid
|
edited_postid
|
||||||
message_json['object']['url'] = \
|
message_json['object']['url'] = \
|
||||||
edited_postid
|
edited_postid
|
||||||
|
message_json['updated'] = \
|
||||||
|
edited_updated
|
||||||
|
message_json['object']['updated'] = \
|
||||||
|
edited_updated
|
||||||
message_json['type'] = 'Update'
|
message_json['type'] = 'Update'
|
||||||
print('DEBUG: sending edited followers post ' +
|
print('DEBUG: sending edited followers post ' +
|
||||||
str(message_json))
|
str(message_json))
|
||||||
|
|
Loading…
Reference in New Issue