forked from mirrors/bookwyrm
Handle absent remote ids
it oughtent get to this state, but...
This commit is contained in:
parent
646ced80ce
commit
d92fb53333
1 changed files with 2 additions and 0 deletions
|
@ -87,6 +87,8 @@ class ActivitypubMixin:
|
|||
related_field = getattr(self, field_name)
|
||||
activity[field_name] = unfurl_related_field(related_field)
|
||||
|
||||
if not activity.get('id'):
|
||||
activity['id'] = self.get_remote_id()
|
||||
return self.activity_serializer(**activity).serialize()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue