From 2ca021e2c6599b39e6225fdbd449093517a34418 Mon Sep 17 00:00:00 2001 From: FChannel <=> Date: Sat, 23 Jan 2021 22:37:20 -0800 Subject: caching progress --- Database.go | 9 --------- 1 file changed, 9 deletions(-) (limited to 'Database.go') diff --git a/Database.go b/Database.go index f79bf50..275bfcd 100644 --- a/Database.go +++ b/Database.go @@ -218,7 +218,6 @@ func writeObjectReplyToDB(db *sql.DB, obj ObjectBase) { } } - func WriteWalletToDB(db *sql.DB, obj ObjectBase) { for _, e := range obj.Option { if e == "wallet" { @@ -401,7 +400,6 @@ func GetInReplyToDB(db *sql.DB, parent ObjectBase) []ObjectBase { return result } - func GetObjectRepliesDB(db *sql.DB, parent ObjectBase) (*CollectionBase, int, int) { var nColl CollectionBase @@ -655,8 +653,6 @@ func GetObjectImgsTotalDB(db *sql.DB, actor Actor) int{ return count } - - func DeletePreviewFromFile(db *sql.DB, id string) { var query = `select href, type from activitystream where id in (select preview from activitystream where id=$1)` @@ -716,7 +712,6 @@ func DeleteAttachmentFromFile(db *sql.DB, id string) { DeleteAttachmentFromDB(db, id) } - func DeletePreviewRepliesFromDB(db *sql.DB, id string) { var query = `select id from activitystream where id in (select id from replies where inreplyto=$1)` // var query = fmt.Sprintf("select id from activitystream where id (select id from replies where inreplyto='%s');", id) @@ -757,7 +752,6 @@ func DeleteAttachmentRepliesFromDB(db *sql.DB, id string) { } } - func DeleteAttachmentFromDB(db *sql.DB, id string) { datetime := time.Now().Format(time.RFC3339) @@ -787,7 +781,6 @@ func DeleteObjectRepliedTo(db *sql.DB, id string){ CheckError(err, "error with delete object replies") } - func DeleteObjectFromDB(db *sql.DB, id string) { datetime := time.Now().Format(time.RFC3339) var query = `update activitystream set type='Tombstone', name='', content='', attributedto='deleted', updated=$1, deleted=$2 where id=$3` @@ -986,5 +979,3 @@ func GetActorReportedDB(db *sql.DB, id string) []ObjectBase { return nObj } - - -- cgit v1.2.3