mirror of https://gitlab.com/bashrc2/epicyon
Highlight moderator accounts
parent
8f21dafc6b
commit
0c28e84ead
|
@ -11,6 +11,7 @@ from utils import loadJson
|
||||||
from utils import getNicknameFromActor
|
from utils import getNicknameFromActor
|
||||||
from utils import getDomainFromActor
|
from utils import getDomainFromActor
|
||||||
from posts import getPublicPostInfo
|
from posts import getPublicPostInfo
|
||||||
|
from posts import isModerator
|
||||||
from webapp_timeline import htmlTimeline
|
from webapp_timeline import htmlTimeline
|
||||||
# from webapp_utils import getPersonAvatarUrl
|
# from webapp_utils import getPersonAvatarUrl
|
||||||
from webapp_utils import getContentWarningButton
|
from webapp_utils import getContentWarningButton
|
||||||
|
@ -196,7 +197,13 @@ def htmlModerationInfo(cssCache: {}, translate: {},
|
||||||
infoForm += '<td>\n<a href="' + acctUrl + '">'
|
infoForm += '<td>\n<a href="' + acctUrl + '">'
|
||||||
infoForm += '<img loading="lazy" style="width:90%" '
|
infoForm += '<img loading="lazy" style="width:90%" '
|
||||||
infoForm += 'src="' + avatarUrl + '" />'
|
infoForm += 'src="' + avatarUrl + '" />'
|
||||||
infoForm += '<br><center>' + acctNickname
|
infoForm += '<br><center>'
|
||||||
|
modAccount = isModerator(baseDir, acctNickname)
|
||||||
|
if modAccount:
|
||||||
|
infoForm += '<b>'
|
||||||
|
infoForm += acctNickname
|
||||||
|
if modAccount:
|
||||||
|
infoForm += '</b>'
|
||||||
infoForm += '</center></a>\n</td>\n'
|
infoForm += '</center></a>\n</td>\n'
|
||||||
col += 1
|
col += 1
|
||||||
if col == cols:
|
if col == cols:
|
||||||
|
|
Loading…
Reference in New Issue