From 10d6e15f51678cb49ae269fa922c7740523e974c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 14 Aug 2021 09:44:58 +0100 Subject: [PATCH] More generic mention urls --- content.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content.py b/content.py index 23dfc3b3b..0c13f0e23 100644 --- a/content.py +++ b/content.py @@ -499,7 +499,7 @@ def _addMention(wordStr: str, httpPrefix: str, following: str, petnames: str, followStr = follow.replace('\n', '').replace('\r', '') replaceDomain = followStr.split('@')[1] recipientActor = httpPrefix + "://" + \ - replaceDomain + "/users/" + possibleNickname + replaceDomain + "/@" + possibleNickname if recipientActor not in recipients: recipients.append(recipientActor) tags[wordStr] = { @@ -526,7 +526,7 @@ def _addMention(wordStr: str, httpPrefix: str, following: str, petnames: str, replaceNickname = followStr.split('@')[0] replaceDomain = followStr.split('@')[1] recipientActor = httpPrefix + "://" + \ - replaceDomain + "/users/" + replaceNickname + replaceDomain + "/@" + replaceNickname if recipientActor not in recipients: recipients.append(recipientActor) tags[wordStr] = { @@ -558,7 +558,7 @@ def _addMention(wordStr: str, httpPrefix: str, following: str, petnames: str, if follow.replace('\n', '').replace('\r', '') != possibleHandle: continue recipientActor = httpPrefix + "://" + \ - possibleDomain + "/users/" + possibleNickname + possibleDomain + "/@" + possibleNickname if recipientActor not in recipients: recipients.append(recipientActor) tags[wordStr] = { @@ -576,7 +576,7 @@ def _addMention(wordStr: str, httpPrefix: str, following: str, petnames: str, if not (possibleDomain == 'localhost' or '.' in possibleDomain): return False recipientActor = httpPrefix + "://" + \ - possibleDomain + "/users/" + possibleNickname + possibleDomain + "/@" + possibleNickname if recipientActor not in recipients: recipients.append(recipientActor) tags[wordStr] = {