mirror of https://gitlab.com/bashrc2/epicyon
Avoid probably invalid postId from creating bad icon links
parent
709e2803d1
commit
8eb6dbd4c9
|
@ -575,7 +575,11 @@ def _getAnnounceIconHtml(isAnnounced: bool,
|
||||||
unannounceLinkStr = '?unannounce=' + \
|
unannounceLinkStr = '?unannounce=' + \
|
||||||
removeIdEnding(announceJsonObject['id'])
|
removeIdEnding(announceJsonObject['id'])
|
||||||
|
|
||||||
announcePostId = removeIdEnding(postJsonObject['object']['id'])
|
if '#' not in postJsonObject['object']['id']:
|
||||||
|
announcePostId = removeIdEnding(postJsonObject['object']['id'])
|
||||||
|
else:
|
||||||
|
announcePostId = \
|
||||||
|
removeIdEnding(postJsonObject['object']['id'].split('#')[0])
|
||||||
announceLinkStr = '?' + \
|
announceLinkStr = '?' + \
|
||||||
announceLink + '=' + announcePostId + pageNumberParam
|
announceLink + '=' + announcePostId + pageNumberParam
|
||||||
announceStr = \
|
announceStr = \
|
||||||
|
|
Loading…
Reference in New Issue