forked from mirrors/bookwyrm
Fixes attribution field logic
This commit is contained in:
parent
8c8b1168d4
commit
082c2708a7
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ class PrivacyField(ActivitypubFieldMixin, models.CharField):
|
|||
# we need to figure out who this is to get their followers link
|
||||
for field in ["attributedTo", "owner", "actor"]:
|
||||
if hasattr(data, field):
|
||||
user_field = getattr(data, field)
|
||||
user_field = field
|
||||
break
|
||||
if not user_field:
|
||||
raise ValidationError("No user field found for privacy", data)
|
||||
|
|
Loading…
Reference in a new issue