aboutsummaryrefslogtreecommitdiff
path: root/Database.go
diff options
context:
space:
mode:
authorFChannel <=>2021-01-23 22:37:20 -0800
committerFChannel <=>2021-01-23 22:37:20 -0800
commit2ca021e2c6599b39e6225fdbd449093517a34418 (patch)
treede65bb297a63765f4e471ddd488975466e438df1 /Database.go
parent000c206417a91d0f910cba35d16d433a1f038530 (diff)
caching progress
Diffstat (limited to 'Database.go')
-rw-r--r--Database.go9
1 files changed, 0 insertions, 9 deletions
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
}
-
-