mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-15 03:04:28 +00:00
Fix formatting
This commit is contained in:
parent
16e0775717
commit
e85f0477cd
2 changed files with 9 additions and 9 deletions
|
@ -369,12 +369,14 @@ class MicroblogPubBackend(Backend):
|
||||||
logger.info(f"inbox_delete handle_replies obj={obj!r}")
|
logger.info(f"inbox_delete handle_replies obj={obj!r}")
|
||||||
in_reply_to = obj.get_in_reply_to()
|
in_reply_to = obj.get_in_reply_to()
|
||||||
if delete.get_object().ACTIVITY_TYPE != ap.ActivityType.NOTE:
|
if delete.get_object().ACTIVITY_TYPE != ap.ActivityType.NOTE:
|
||||||
in_reply_to = ap._get_id(DB.activities.find_one(
|
in_reply_to = ap._get_id(
|
||||||
|
DB.activities.find_one(
|
||||||
{
|
{
|
||||||
"activity.object.id": delete.get_object().id,
|
"activity.object.id": delete.get_object().id,
|
||||||
"type": ap.ActivityType.CREATE.value,
|
"type": ap.ActivityType.CREATE.value,
|
||||||
}
|
}
|
||||||
)["activity"]["object"].get("inReplyTo"))
|
)["activity"]["object"].get("inReplyTo")
|
||||||
|
)
|
||||||
|
|
||||||
# Fake a Undo so any related Like/Announce doesn't appear on the web UI
|
# Fake a Undo so any related Like/Announce doesn't appear on the web UI
|
||||||
DB.activities.update(
|
DB.activities.update(
|
||||||
|
|
4
app.py
4
app.py
|
@ -2703,9 +2703,7 @@ def task_process_new_activity():
|
||||||
tag_stream = True
|
tag_stream = True
|
||||||
|
|
||||||
# FIXME(tsileo): check for direct addressing in the to, cc, bcc... fields
|
# FIXME(tsileo): check for direct addressing in the to, cc, bcc... fields
|
||||||
if (in_reply_to and in_reply_to.startswith(ID)) or note.has_mention(
|
if (in_reply_to and in_reply_to.startswith(ID)) or note.has_mention(ID):
|
||||||
ID
|
|
||||||
):
|
|
||||||
should_keep = True
|
should_keep = True
|
||||||
|
|
||||||
if in_reply_to:
|
if in_reply_to:
|
||||||
|
|
Loading…
Reference in a new issue