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