Drop Like related to inbox objects
This commit is contained in:
parent
296cb05ace
commit
12c328a0b3
2 changed files with 4 additions and 3 deletions
|
@ -948,8 +948,9 @@ async def save_to_inbox(
|
|||
if not relates_to_outbox_object:
|
||||
logger.info(
|
||||
"Received a like for an unknown activity: "
|
||||
f"{activity_ro.activity_object_ap_id}"
|
||||
f"{activity_ro.activity_object_ap_id}, deleting the activity"
|
||||
)
|
||||
await db_session.delete(inbox_object)
|
||||
else:
|
||||
relates_to_outbox_object.likes_count = models.OutboxObject.likes_count + 1
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue