Show likes in the notifications
This commit is contained in:
parent
9431cb09d7
commit
cbd9d4e6da
4 changed files with 38 additions and 10 deletions
|
@ -280,16 +280,6 @@ class MicroblogPubBackend(Backend):
|
|||
{"$inc": {"meta.count_like": 1}, "$set": {"meta.liked": like.id}},
|
||||
)
|
||||
|
||||
DB.activities.update_one(
|
||||
{"remote_id": like.id},
|
||||
{
|
||||
"$set": {
|
||||
"meta.object": obj.to_dict(embed=True),
|
||||
"meta.object_actor": _actor_to_meta(obj.get_actor()),
|
||||
}
|
||||
},
|
||||
)
|
||||
|
||||
@ensure_it_is_me
|
||||
def outbox_undo_like(self, as_actor: ap.Person, like: ap.Like) -> None:
|
||||
obj = like.get_object()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue