kopia lustrzana https://gitlab.com/jaywink/federation
Case insensitive lookup with finger.
rodzic
d7e6a56eb6
commit
cb96d83793
|
@ -816,7 +816,7 @@ class Note(Object, RawContentMixin):
|
||||||
mentions.sort()
|
mentions.sort()
|
||||||
for mention in mentions:
|
for mention in mentions:
|
||||||
if validate_handle(mention):
|
if validate_handle(mention):
|
||||||
profile = get_profile(finger=mention)
|
profile = get_profile(finger__iexact=mention)
|
||||||
# only add AP profiles mentions
|
# only add AP profiles mentions
|
||||||
if getattr(profile, 'id', None):
|
if getattr(profile, 'id', None):
|
||||||
self.tag_objects.append(Mention(href=profile.id, name='@'+mention))
|
self.tag_objects.append(Mention(href=profile.id, name='@'+mention))
|
||||||
|
|
Ładowanie…
Reference in New Issue