forked from indymedia/epicyon
Create replies timeline
parent
6f07240c3e
commit
c2ce6b4064
|
@ -1783,7 +1783,8 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.server.httpPrefix, \
|
||||
maxPostsInFeed, 'tlreplies', \
|
||||
True,self.server.ocapAlways)
|
||||
if inboxRepliesFeed:
|
||||
if not inboxRepliesFeed:
|
||||
inboxRepliesFeed=[]
|
||||
if self._requestHTTP():
|
||||
nickname=self.path.replace('/users/','').replace('/tlreplies','')
|
||||
pageNumber=1
|
||||
|
@ -1820,7 +1821,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self._set_headers('text/html',len(msg),cookie)
|
||||
self.wfile.write(msg)
|
||||
else:
|
||||
msg=json.dumps(inboxDMFeed).encode('utf-8')
|
||||
msg=json.dumps(inboxRepliesFeed).encode('utf-8')
|
||||
self._set_headers('application/json',len(msg),None)
|
||||
self.wfile.write(msg)
|
||||
self.server.GETbusy=False
|
||||
|
|
Loading…
Reference in New Issue