Test for news

main
Bob Mottram 2020-10-10 21:58:12 +01:00
parent 254422e840
commit 41c7d814ad
1 changed files with 2 additions and 1 deletions

View File

@ -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')