forked from indymedia/epicyon
More recipients from mentions
parent
4d7e37d6ee
commit
e5803ae454
|
@ -39,6 +39,9 @@ def addMentions(baseDir: str,httpPrefix: str, \
|
||||||
replaceFound=False
|
replaceFound=False
|
||||||
for follow in following:
|
for follow in following:
|
||||||
if follow.replace('\n','')==possibleHandle:
|
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>"
|
replaceMentions[wordStr]="<span class=\"h-card\"><a href=\""+httpPrefix+"://"+possibleDomain+"/@"+possibleNickname+"\" class=\"u-url mention\">@<span>"+possibleNickname+"</span></a></span>"
|
||||||
replaceFound=True
|
replaceFound=True
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue