mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-15 03:04:28 +00:00
Fix the fetch remote question task for delete ones
This commit is contained in:
parent
99bf6a4a01
commit
f6ddb47fdf
1 changed files with 6 additions and 1 deletions
|
@ -538,7 +538,12 @@ def task_fetch_remote_question() -> _Response:
|
||||||
"activity.object.id": iri,
|
"activity.object.id": iri,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
try:
|
||||||
remote_question = ap.get_backend().fetch_iri(iri, no_cache=True)
|
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)
|
# FIXME(tsileo): compute and set `meta.object_visiblity` (also update utils.py to do it)
|
||||||
if (
|
if (
|
||||||
local_question
|
local_question
|
||||||
|
|
Loading…
Reference in a new issue