diff --git a/webinterface.py b/webinterface.py index f0316c241..1a83cb91b 100644 --- a/webinterface.py +++ b/webinterface.py @@ -4593,7 +4593,8 @@ def individualPostAsHtml(allowDownloads: bool, editStr = '' print('EDIT TEST 1') - if fullDomain + '/users/' + nickname in postJsonObject['actor']: + if postJsonObject['actor'].endswith(fullDomain + '/users/' + nickname) or \ + postJsonObject['actor'].endswith(fullDomain + '/users/news'): print('EDIT TEST 2') if '/statuses/' in postJsonObject['object']['id']: print('EDIT TEST 3')