fixes change password view
This commit is contained in:
parent
6b10e487b6
commit
ee2b656b08
2 changed files with 4 additions and 3 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue