mirror of https://gitlab.com/bashrc2/epicyon
Check for news editor
parent
41c7d814ad
commit
233f8440c6
|
@ -4592,17 +4592,13 @@ 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 (postJsonObject['actor'].endswith(fullDomain + '/users/' + nickname) or
|
||||||
if postJsonObject['actor'].endswith(fullDomain + '/users/' + nickname) or \
|
(isEditor(baseDir, nickname) and
|
||||||
postJsonObject['actor'].endswith(fullDomain + '/users/news'):
|
postJsonObject['actor'].endswith(fullDomain + '/users/news'))):
|
||||||
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/' + \
|
||||||
|
@ -4616,7 +4612,6 @@ 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/' + \
|
||||||
|
|
Loading…
Reference in New Issue