fixes change password view

This commit is contained in:
Mouse Reeve
2021-02-06 22:37:40 -08:00
parent 6b10e487b6
commit ee2b656b08
2 changed files with 4 additions and 3 deletions

View File

@ -384,9 +384,10 @@ class ActivityMixin(ActivitypubMixin):
def to_undo_activity(self):
''' undo an action '''
user = self.user if hasattr(self, 'user') else self.user_subject
return activitypub.Undo(
id='%s#undo' % self.remote_id,
actor=self.user.remote_id,
actor=user.remote_id,
object=self.to_activity()
).serialize()