More recipients from mentions

master
Bob Mottram 2019-08-05 18:20:38 +01:00
parent 4d7e37d6ee
commit e5803ae454
1 changed files with 3 additions and 0 deletions

View File

@ -39,6 +39,9 @@ def addMentions(baseDir: str,httpPrefix: str, \
replaceFound=False
for follow in following:
if follow.replace('\n','')==possibleHandle:
recipientActor=httpPrefix+"://"+possibleDomain+"/users/"+possibleNickname
if recipientActor not in recipients:
recipients.append(recipientActor)
replaceMentions[wordStr]="<span class=\"h-card\"><a href=\""+httpPrefix+"://"+possibleDomain+"/@"+possibleNickname+"\" class=\"u-url mention\">@<span>"+possibleNickname+"</span></a></span>"
replaceFound=True
break