Fixes logic error in detecting changed fields when serializing
This commit is contained in:
@ -80,7 +80,7 @@ class ActivitypubFieldMixin:
|
||||
return False
|
||||
|
||||
# the field is unchanged
|
||||
if getattr(instance, self.name) == formatted:
|
||||
if hasattr(instance, self.name) and getattr(instance, self.name) == formatted:
|
||||
return False
|
||||
|
||||
setattr(instance, self.name, formatted)
|
||||
|
Reference in New Issue
Block a user