Make a copy

This commit is contained in:
bashrc committed 2020-02-21 15:20:13 +00:00
1 parent 1d642e0d40
commit 075489bea4
1 file changed
+2 -1
+2 -1
View File
@@ -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: