diff options
author | FChannel <> | 2021-06-25 01:39:50 -0700 |
---|---|---|
committer | FChannel <> | 2021-06-25 01:39:50 -0700 |
commit | 3b806e4603a7da8bb6a24029a0115e18a6b7ba5b (patch) | |
tree | 1616572f47ebf68e52bb1b0d0eff942c72fa9d9c /cacheDatabase.go | |
parent | ef7eb7330018c84a44fb24711982c25f51749d2e (diff) |
expanded header signature support to known possible values at this time
Diffstat (limited to 'cacheDatabase.go')
-rw-r--r-- | cacheDatabase.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cacheDatabase.go b/cacheDatabase.go index 94f88d2..5acead7 100644 --- a/cacheDatabase.go +++ b/cacheDatabase.go @@ -32,6 +32,10 @@ func WriteObjectToCache(db *sql.DB, obj ObjectBase) ObjectBase { func WriteActorObjectToCache(db *sql.DB, obj ObjectBase) ObjectBase { if len(obj.Attachment) > 0 { + + if IsIDLocal(db, obj.Id) { + return obj + } if obj.Preview.Href != "" { WritePreviewToCache(db, *obj.Preview) } |