Parsing edit blog post link

main
Bob Mottram 2021-10-28 12:20:56 +01:00
parent eee33cdb32
commit cbb76eb97b
1 changed files with 4 additions and 4 deletions

View File

@ -14402,13 +14402,13 @@ class PubServer(BaseHTTPRequestHandler):
if authorized and \
'/users/' in self.path and \
'?editblogpost=' in self.path and \
'?actor=' in self.path:
';actor=' in self.path:
messageId = self.path.split('?editblogpost=')[1]
if '?' in messageId:
messageId = messageId.split('?')[0]
actor = self.path.split('?actor=')[1]
if '?' in actor:
actor = actor.split('?')[0]
actor = self.path.split(';actor=')[1]
if ';' in actor:
actor = actor.split(';')[0]
nickname = getNicknameFromActor(self.path.split('?')[0])
if nickname == actor:
postUrl = \