forked from indymedia/epicyon
Switch mutes
parent
932f5d4a5a
commit
42fe4721cc
4
posts.py
4
posts.py
|
@ -3560,7 +3560,7 @@ def mutePost(baseDir: str, nickname: str, domain: str, postId: str,
|
|||
if recentPostsCache.get('html'):
|
||||
if recentPostsCache['html'].get(postId):
|
||||
postHtml = recentPostsCache['html'][postId]
|
||||
if '/unmute.png' in postHtml:
|
||||
if '/mute.png' in postHtml:
|
||||
postHtml = \
|
||||
postHtml.replace('/mute.png', '/unmute.png')
|
||||
recentPostsCache['html'][postId] = \
|
||||
|
@ -3605,7 +3605,7 @@ def unmutePost(baseDir: str, nickname: str, domain: str, postId: str,
|
|||
if recentPostsCache.get('html'):
|
||||
if recentPostsCache['html'].get(postId):
|
||||
postHtml = recentPostsCache['html'][postId]
|
||||
if '/mute.png' in postHtml:
|
||||
if '/unmute.png' in postHtml:
|
||||
postHtml = \
|
||||
postHtml.replace('/unmute.png', '/mute.png')
|
||||
recentPostsCache['html'][postId] = \
|
||||
|
|
Loading…
Reference in New Issue