main
Bob Mottram 2020-08-26 11:09:03 +01:00
parent 18f20152d0
commit 0dc6d39de5
1 changed files with 2 additions and 0 deletions

View File

@ -4831,6 +4831,7 @@ class PubServer(BaseHTTPRequestHandler):
'/events?page=' in self.path:
if '/users/' in self.path:
if authorized:
# convert /events to /tlevents
if self.path.endswith('/events') or \
'/events?page=' in self.path:
self.path = self.path.replace('/events', '/tlevents')
@ -4844,6 +4845,7 @@ class PubServer(BaseHTTPRequestHandler):
self.server.httpPrefix,
maxPostsInFeed, 'tlevents',
authorized, self.server.ocapAlways)
print('eventsFeed: ' + str(eventsFeed))
if eventsFeed:
if self._requestHTTP():
nickname = self.path.replace('/users/', '')