Don't erase follows on update

This commit is contained in:
Mouse Reeve 2021-04-22 10:28:10 -07:00
parent a797b68558
commit 3ed822b9ea

View file

@ -275,9 +275,12 @@ class ManyToManyField(ActivitypubFieldMixin, models.ManyToManyField):
return [i.remote_id for i in value.all()]
def field_from_activity(self, value):
items = []
if value is None or value is MISSING:
return []
return None
if not isinstance(value, list):
# TODO
return None
items = []
for remote_id in value:
try:
validate_remote_id(remote_id)