Use variable

main
Bob Mottram 2019-11-17 17:17:17 +00:00
parent 1d06970320
commit ee5682a728
1 changed files with 6 additions and 6 deletions

View File

@ -2351,7 +2351,7 @@ class PubServer(BaseHTTPRequestHandler):
self.path, \
self.server.httpPrefix, \
maxPostsInFeed, 'inbox', \
True,self.server.ocapAlways)
authorized,self.server.ocapAlways)
if inboxFeed:
if self._requestHTTP():
nickname=self.path.replace('/users/','').replace('/inbox','')
@ -2372,7 +2372,7 @@ class PubServer(BaseHTTPRequestHandler):
self.path+'?page=1', \
self.server.httpPrefix, \
maxPostsInFeed, 'inbox', \
True,self.server.ocapAlways)
authorized,self.server.ocapAlways)
msg=htmlInbox(self.server.translate, \
pageNumber,maxPostsInFeed, \
self.server.session, \
@ -2423,7 +2423,7 @@ class PubServer(BaseHTTPRequestHandler):
self.path, \
self.server.httpPrefix, \
maxPostsInFeed, 'dm', \
True,self.server.ocapAlways)
authorized,self.server.ocapAlways)
if inboxDMFeed:
if self._requestHTTP():
nickname=self.path.replace('/users/','').replace('/dm','')
@ -2444,7 +2444,7 @@ class PubServer(BaseHTTPRequestHandler):
self.path+'?page=1', \
self.server.httpPrefix, \
maxPostsInFeed, 'dm', \
True,self.server.ocapAlways)
authorized,self.server.ocapAlways)
msg=htmlInboxDMs(self.server.translate, \
pageNumber,maxPostsInFeed, \
self.server.session, \
@ -2684,7 +2684,7 @@ class PubServer(BaseHTTPRequestHandler):
self.path, \
self.server.httpPrefix, \
maxPostsInFeed, 'tlbookmarks', \
True,self.server.ocapAlways)
authorized,self.server.ocapAlways)
if bookmarksFeed:
if self._requestHTTP():
nickname=self.path.replace('/users/','').replace('/tlbookmarks','')
@ -2706,7 +2706,7 @@ class PubServer(BaseHTTPRequestHandler):
self.path+'?page=1', \
self.server.httpPrefix, \
maxPostsInFeed, 'tlbookmarks', \
True,self.server.ocapAlways)
authorized,self.server.ocapAlways)
msg=htmlBookmarks(self.server.translate, \
pageNumber,maxPostsInFeed, \
self.server.session, \