aboutsummaryrefslogtreecommitdiff
path: root/cacheDatabase.go
diff options
context:
space:
mode:
Diffstat (limited to 'cacheDatabase.go')
-rw-r--r--cacheDatabase.go4
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)
}