From 5c5676b14f51b524af61e2c307808650c40e1dae Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Mon, 30 Sep 2019 16:42:59 -0400 Subject: [PATCH] only blob local files --- upgradedb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upgradedb.go b/upgradedb.go index 7c49139..20a5134 100644 --- a/upgradedb.go +++ b/upgradedb.go @@ -213,7 +213,7 @@ func upgradedb() { doordie(db, "create index idx_filesxid on filemeta(xid)") doordie(db, "create index idx_filesurl on filemeta(url)") - rows, err := db.Query("select xid, media, content from files") + rows, err := db.Query("select xid, media, content from files where local = 1") if err != nil { log.Fatal(err) }