mirror of https://gitlab.com/bashrc2/epicyon
Dummy endpoints for masto api followers and following
parent
df0700e352
commit
c55ecac34d
12
daemon.py
12
daemon.py
|
@ -813,7 +813,17 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
if mastoId is not None:
|
if mastoId is not None:
|
||||||
pathNickname = getNicknameFromMastoApiV1Id(mastoId)
|
pathNickname = getNicknameFromMastoApiV1Id(mastoId)
|
||||||
if pathNickname:
|
if pathNickname:
|
||||||
sendJson = getMastoApiV1Account(baseDir, pathNickname, domain)
|
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
|
sendJsonStr = 'masto API account sent for ' + nickname
|
||||||
|
|
||||||
adminNickname = getConfigParam(self.server.baseDir, 'admin')
|
adminNickname = getConfigParam(self.server.baseDir, 'admin')
|
||||||
|
|
Loading…
Reference in New Issue