forked from mirrors/bookwyrm
Handles outdated Add with Book type
should be edition.
This commit is contained in:
parent
310c814399
commit
948e938040
1 changed files with 2 additions and 0 deletions
|
@ -283,6 +283,8 @@ class TagField(ManyToManyField):
|
|||
for link_json in value:
|
||||
link = activitypub.Link(**link_json)
|
||||
tag_type = link.type if link.type != 'Mention' else 'Person'
|
||||
if tag_type == 'Book':
|
||||
tag_type = 'Edition'
|
||||
if tag_type != self.related_model.activity_serializer.type:
|
||||
# tags can contain multiple types
|
||||
continue
|
||||
|
|
Loading…
Reference in a new issue