aboutsummaryrefslogtreecommitdiff
path: root/Database.go
diff options
context:
space:
mode:
authorFChannel <=>2021-01-24 22:30:56 -0800
committerFChannel <=>2021-01-24 22:30:56 -0800
commit3d307abbdf1c0ee711c80c753930a88014c8925a (patch)
tree6bceb0f4c4e47380206cb1c79fd8e2dee961adf4 /Database.go
parenta706133ba7c15f366dba66d10bf8f556147e40f1 (diff)
reply feedback loop fix
Diffstat (limited to 'Database.go')
-rw-r--r--Database.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/Database.go b/Database.go
index cce0fcd..9ebf000 100644
--- a/Database.go
+++ b/Database.go
@@ -470,6 +470,7 @@ func GetObjectRepliesDB(db *sql.DB, parent ObjectBase) (*CollectionBase, int, in
nColl.OrderedItems = result
+ /*
remoteCollection := GetObjectRepliesRemote(db, parent)
var postc int
@@ -481,8 +482,9 @@ func GetObjectRepliesDB(db *sql.DB, parent ObjectBase) (*CollectionBase, int, in
imgc = imgc + 1
}
}
+*/
- return &nColl, postc, imgc
+ return &nColl, 0, 0
}
func GetObjectRepliesRemote(db *sql.DB, parent ObjectBase) CollectionBase {
@@ -552,6 +554,7 @@ func GetObjectRepliesRepliesDB(db *sql.DB, parent ObjectBase) (*CollectionBase,
result = append(result, post)
}
+ /*
remoteCollection := GetObjectRepliesRemote(db, parent)
var postc int
@@ -565,9 +568,11 @@ func GetObjectRepliesRepliesDB(db *sql.DB, parent ObjectBase) (*CollectionBase,
}
}
+
nColl.OrderedItems = result
+*/
- return &nColl, postc, imgc
+ return &nColl, 0, 0
}
func GetObjectRepliesDBCount(db *sql.DB, parent ObjectBase) (int, int) {