From 075489bea4daecbf81cb8b9017ac7582ec6caa89 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 21 Feb 2020 15:20:13 +0000 Subject: [PATCH] Make a copy --- posts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/posts.py b/posts.py index cb8bafca0..6d9593ea9 100644 --- a/posts.py +++ b/posts.py @@ -541,7 +541,8 @@ def createPostBase(baseDir: str,nickname: str,domain: str,port: int, \ # get list of tags content=replaceEmojiFromTags(content,tags,'content') # remove replaced emoji - for tagName,tag in hashtagsDict.items(): + hashtagsDictCopy=hashtagsDict.copy() + for tagName,tag in hashtagsDictCopy.items(): if tag.get('name'): if tag['name'].startswith(':'): if tag['name'] not in content: