From cbb76eb97b8f55dd9dfa60fa55336397b13bae83 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 28 Oct 2021 12:20:56 +0100 Subject: [PATCH] Parsing edit blog post link --- daemon.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/daemon.py b/daemon.py index e95d82273..a732b789e 100644 --- a/daemon.py +++ b/daemon.py @@ -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 = \