Case insensitive lookup with finger.

ap-processing-improvements
Alain St-Denis 2023-07-23 10:05:25 -04:00
rodzic d7e6a56eb6
commit cb96d83793
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -816,7 +816,7 @@ class Note(Object, RawContentMixin):
mentions.sort()
for mention in mentions:
if validate_handle(mention):
profile = get_profile(finger=mention)
profile = get_profile(finger__iexact=mention)
# only add AP profiles mentions
if getattr(profile, 'id', None):
self.tag_objects.append(Mention(href=profile.id, name='@'+mention))