kopia lustrzana https://gitlab.com/jaywink/federation
Mark an AP mention only if profile.finger is defined.
rodzic
f1bb3544fa
commit
2509692041
|
@ -885,11 +885,11 @@ class Note(Object, RawContentMixin):
|
||||||
for mention in mentions:
|
for mention in mentions:
|
||||||
hrefs = []
|
hrefs = []
|
||||||
profile = get_profile_or_entity(fid=mention.href, remote_url=mention.href)
|
profile = get_profile_or_entity(fid=mention.href, remote_url=mention.href)
|
||||||
if profile and not profile.url:
|
if profile and not (profile.url and profile.finger):
|
||||||
# This should be removed when we are confident that the remote_url property
|
# This should be removed when we are confident that the remote_url and
|
||||||
# has been populated for most profiles on the client app side.
|
# finger properties have been populated for most profiles on the client app side.
|
||||||
profile = retrieve_and_parse_profile(profile.id)
|
profile = retrieve_and_parse_profile(profile.id)
|
||||||
if profile:
|
if profile and profile.finger:
|
||||||
hrefs.extend([profile.id, profile.url])
|
hrefs.extend([profile.id, profile.url])
|
||||||
else:
|
else:
|
||||||
continue
|
continue
|
||||||
|
|
Ładowanie…
Reference in New Issue