Make a copy

merge-requests/6/head
Bob Mottram 2020-02-21 15:20:13 +00:00
parent 1d642e0d40
commit 075489bea4
1 changed files with 2 additions and 1 deletions

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: