mirror of https://gitlab.com/bashrc2/epicyon
Set id on pinned post json
parent
2b1bb3e82f
commit
545f5d0523
|
@ -10170,6 +10170,11 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.domain,
|
||||
self.server.port,
|
||||
pinnedPostJson)
|
||||
messageJson['id'] = pinnedPostJson['id'] + '/activity'
|
||||
messageJson['object']['id'] = pinnedPostJson['id']
|
||||
messageJson['object']['url'] = \
|
||||
pinnedPostJson['id'].replace('/users/', '/@')
|
||||
messageJson['object']['atomUri'] = pinnedPostJson['id']
|
||||
msg = json.dumps(messageJson,
|
||||
ensure_ascii=False).encode('utf-8')
|
||||
msglen = len(msg)
|
||||
|
|
Loading…
Reference in New Issue