fixes inconsistency in to_undo activity helper

This commit is contained in:
Mouse Reeve
2020-12-04 11:52:01 -08:00
parent 39307ce1cd
commit 800ddf2a6b
2 changed files with 20 additions and 3 deletions

View File

@ -142,10 +142,10 @@ class ActivitypubMixin:
def to_undo_activity(self, user):
''' undo an action '''
return activitypub.Undo(
id='%s#undo' % user.remote_id,
id='%s#undo' % self.remote_id,
actor=user.remote_id,
object=self.to_activity()
)
).serialize()
class OrderedCollectionPageMixin(ActivitypubMixin):