mirror of https://gitlab.com/bashrc2/epicyon
Dummy endpoints for masto api followers and following
parent
df0700e352
commit
c55ecac34d
14
daemon.py
14
daemon.py
|
@ -813,8 +813,18 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
if mastoId is not None:
|
||||
pathNickname = getNicknameFromMastoApiV1Id(mastoId)
|
||||
if pathNickname:
|
||||
sendJson = getMastoApiV1Account(baseDir, pathNickname, domain)
|
||||
sendJsonStr = 'masto API account sent for ' + nickname
|
||||
if '/followers?' in path or '/following?' in path:
|
||||
path = path.split('?')[0]
|
||||
if path.endswith('/followers'):
|
||||
sendJson = []
|
||||
sendJsonStr = 'masto API followers sent for ' + nickname
|
||||
if path.endswith('/following'):
|
||||
sendJson = []
|
||||
sendJsonStr = 'masto API following sent for ' + nickname
|
||||
else:
|
||||
sendJson = \
|
||||
getMastoApiV1Account(baseDir, pathNickname, domain)
|
||||
sendJsonStr = 'masto API account sent for ' + nickname
|
||||
|
||||
adminNickname = getConfigParam(self.server.baseDir, 'admin')
|
||||
if adminNickname and path == '/api/v1/instance':
|
||||
|
|
Loading…
Reference in New Issue