Bugfix undo like
This commit is contained in:
parent
c988817ef1
commit
45d648ab3d
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ def _undo_process_outbox(undo: ap.Undo, new_meta: _NewMeta) -> None:
|
|||
|
||||
# Undo Like
|
||||
if obj.has_type(ap.ActivityType.LIKE):
|
||||
liked = obj.get_objec_id()
|
||||
liked = obj.get_object_id()
|
||||
DB.activities.update_one(
|
||||
{"activity.object.id": liked},
|
||||
{"$inc": {"meta.count_like": -1}, "$set": {"meta.liked": False}},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue