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.get('html'):
|
||||||
if recentPostsCache['html'].get(postId):
|
if recentPostsCache['html'].get(postId):
|
||||||
postHtml = recentPostsCache['html'][postId]
|
postHtml = recentPostsCache['html'][postId]
|
||||||
if '/unmute.png' in postHtml:
|
if '/mute.png' in postHtml:
|
||||||
postHtml = \
|
postHtml = \
|
||||||
postHtml.replace('/mute.png', '/unmute.png')
|
postHtml.replace('/mute.png', '/unmute.png')
|
||||||
recentPostsCache['html'][postId] = \
|
recentPostsCache['html'][postId] = \
|
||||||
|
@ -3605,7 +3605,7 @@ def unmutePost(baseDir: str, nickname: str, domain: str, postId: str,
|
||||||
if recentPostsCache.get('html'):
|
if recentPostsCache.get('html'):
|
||||||
if recentPostsCache['html'].get(postId):
|
if recentPostsCache['html'].get(postId):
|
||||||
postHtml = recentPostsCache['html'][postId]
|
postHtml = recentPostsCache['html'][postId]
|
||||||
if '/mute.png' in postHtml:
|
if '/unmute.png' in postHtml:
|
||||||
postHtml = \
|
postHtml = \
|
||||||
postHtml.replace('/unmute.png', '/mute.png')
|
postHtml.replace('/unmute.png', '/mute.png')
|
||||||
recentPostsCache['html'][postId] = \
|
recentPostsCache['html'][postId] = \
|
||||||
|
|
Loading…
Reference in New Issue