~tsileo/microblog.pub

f6ddb47fdf140fd99f671b25c94b705a89daaa30 — Thomas Sileo 8 months ago 99bf6a4
Fix the fetch remote question task for delete ones
1 files changed, 6 insertions(+), 1 deletions(-)

M blueprints/tasks.py
M blueprints/tasks.py => blueprints/tasks.py +6 -1
@@ 538,7 538,12 @@ def task_fetch_remote_question() -> _Response:
                "activity.object.id": iri,
            }
        )
        remote_question = ap.get_backend().fetch_iri(iri, no_cache=True)
        try:
            remote_question = ap.get_backend().fetch_iri(iri, no_cache=True)
        except (ActivityGoneError, ActivityNotFoundError):
            app.logger.info("f{iri} not found, no retry")
            return ""

        # FIXME(tsileo): compute and set `meta.object_visiblity` (also update utils.py to do it)
        if (
            local_question