merge-requests/30/head
Bob Mottram 2020-10-10 21:54:07 +01:00
parent 9b98b3094d
commit 254422e840
1 changed files with 6 additions and 0 deletions

View File

@ -4592,11 +4592,16 @@ def individualPostAsHtml(allowDownloads: bool,
print('TIMING INDIV ' + boxName + ' 11 = ' + str(timeDiff)) print('TIMING INDIV ' + boxName + ' 11 = ' + str(timeDiff))
editStr = '' editStr = ''
print('EDIT TEST 1')
if fullDomain + '/users/' + nickname in postJsonObject['actor']: if fullDomain + '/users/' + nickname in postJsonObject['actor']:
print('EDIT TEST 2')
if '/statuses/' in postJsonObject['object']['id']: if '/statuses/' in postJsonObject['object']['id']:
print('EDIT TEST 3')
if isBlogPost(postJsonObject): if isBlogPost(postJsonObject):
print('EDIT TEST 4')
blogPostId = postJsonObject['object']['id'] blogPostId = postJsonObject['object']['id']
if not isNewsPost(postJsonObject): if not isNewsPost(postJsonObject):
print('EDIT TEST 5')
editStr += \ editStr += \
' ' + \ ' ' + \
'<a class="imageAnchor" href="/users/' + \ '<a class="imageAnchor" href="/users/' + \
@ -4610,6 +4615,7 @@ def individualPostAsHtml(allowDownloads: bool,
translate['Edit blog post'] + \ translate['Edit blog post'] + \
' |" src="/' + iconsDir + '/edit.png"/></a>\n' ' |" src="/' + iconsDir + '/edit.png"/></a>\n'
else: else:
print('EDIT TEST 6')
editStr += \ editStr += \
' ' + \ ' ' + \
'<a class="imageAnchor" href="/users/' + \ '<a class="imageAnchor" href="/users/' + \