diff --git a/posts.py b/posts.py index 09d85f43..f4b2d896 100644 --- a/posts.py +++ b/posts.py @@ -471,9 +471,10 @@ def createPostBase(baseDir: str,nickname: str, domain: str, port: int, \ toRecipients=[toUrl] # who to send to - for mention in mentionedRecipients: - if mention not in toRecipients: - toRecipients.append(mention) + if mentionedRecipients: + for mention in mentionedRecipients: + if mention not in toRecipients: + toRecipients.append(mention) # create a list of hashtags if hashtagsDict: