diff --git a/federation/entities/activitypub/models.py b/federation/entities/activitypub/models.py index ad1d1a6..f92cc58 100644 --- a/federation/entities/activitypub/models.py +++ b/federation/entities/activitypub/models.py @@ -875,7 +875,7 @@ class Note(Object, RawContentMixin): mentions.sort() for mention in mentions: if validate_handle(mention): - profile = get_profile(handle=mention) + profile = get_profile(finger=mention) # only add AP profiles mentions if getattr(profile, 'id', None): self.tag_objects.append(Mention(href=profile.id, name='@'+mention)) @@ -891,7 +891,7 @@ class Note(Object, RawContentMixin): for tag in self.tag_objects: if isinstance(tag, Mention): profile = get_profile_or_entity(fid=tag.href) - handle = getattr(profile, 'handle', None) + handle = getattr(profile, 'finger', None) if handle: self._mentions.add(handle) @property diff --git a/federation/outbound.py b/federation/outbound.py index 7406769..a5c3629 100644 --- a/federation/outbound.py +++ b/federation/outbound.py @@ -2,7 +2,6 @@ import copy import importlib import json import logging -from pprint import pprint import traceback from typing import List, Dict, Union