mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 13:14:28 +00:00
Read reply from cache
This commit is contained in:
parent
5da44298a8
commit
7bd2aa4592
1 changed files with 4 additions and 0 deletions
|
@ -383,6 +383,10 @@ class MicroblogPubBackend(Backend):
|
|||
):
|
||||
return actor2["meta"]["object"]
|
||||
|
||||
reply = DB.replies.find_one(by_remote_id(iri))
|
||||
if reply:
|
||||
return reply["activity"]
|
||||
|
||||
# Fetch the URL via HTTP
|
||||
logger.info(f"dereference {iri} via HTTP")
|
||||
return super().fetch_iri(iri)
|
||||
|
|
Loading…
Reference in a new issue