From 41c7d814adefa448d6746d8f9364cb912d1db721 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 10 Oct 2020 21:58:12 +0100 Subject: [PATCH] Test for news --- webinterface.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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')