forked from forks/microblog.pub
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,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
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)
|
# 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