Drop Like related to inbox objects
parent
296cb05ace
commit
12c328a0b3
|
@ -948,8 +948,9 @@ async def save_to_inbox(
|
||||||
if not relates_to_outbox_object:
|
if not relates_to_outbox_object:
|
||||||
logger.info(
|
logger.info(
|
||||||
"Received a like for an unknown activity: "
|
"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:
|
else:
|
||||||
relates_to_outbox_object.likes_count = models.OutboxObject.likes_count + 1
|
relates_to_outbox_object.likes_count = models.OutboxObject.likes_count + 1
|
||||||
|
|
||||||
|
|
|
@ -66,9 +66,9 @@ _RESIZED_CACHE: MutableMapping[tuple[str, int], tuple[bytes, str, Any]] = LFUCac
|
||||||
# TODO(ts):
|
# TODO(ts):
|
||||||
#
|
#
|
||||||
# Next:
|
# Next:
|
||||||
# - indieauth
|
# - allow to undo follow requests
|
||||||
|
# - indieauth tweaks
|
||||||
# - API for posting notes
|
# - API for posting notes
|
||||||
# - outgoing activity for webmentions
|
|
||||||
# - allow to block servers
|
# - allow to block servers
|
||||||
# - FT5 text search
|
# - FT5 text search
|
||||||
# - support update post with history
|
# - support update post with history
|
||||||
|
|
Loading…
Reference in New Issue