Uses correct object to determine author

This commit is contained in:
Mouse Reeve 2021-08-28 11:30:54 -07:00
parent dc72df7339
commit 2c26b04119

View file

@ -226,7 +226,7 @@ class PrivacyField(ActivitypubFieldMixin, models.CharField):
cc = data.cc
# we need to figure out who this is to get their followers link
user = activitypub.resolve_remote_id(self.attributedTo, model="User")
user = activitypub.resolve_remote_id(data.attributedTo, model="User")
if to == [self.public]:
setattr(instance, self.name, "public")