aboutsummaryrefslogtreecommitdiff
path: root/Database.go
diff options
context:
space:
mode:
authorFChannel <=>2021-01-28 20:29:11 -0800
committerFChannel <=>2021-01-28 20:29:11 -0800
commite358eb07ec4ce873f750c0b75d7b23df4da2fbb8 (patch)
tree1cd9eb8854255e6ed3cd4ab0a8a69bfc1ff7279f /Database.go
parent0d4cd485b5225cfa737842de6ba0e96d6d21722b (diff)
view individual post from url
Diffstat (limited to 'Database.go')
-rw-r--r--Database.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/Database.go b/Database.go
index 06e8769..9b8ecda 100644
--- a/Database.go
+++ b/Database.go
@@ -448,7 +448,7 @@ func GetObjectByIDFromDB(db *sql.DB, postID string) Collection {
var nColl Collection
var result []ObjectBase
- query := `select id, name, content, type, published, updated, attributedto, attachment, preview, actor from activitystream where id=$1 and id in (select id from replies where inreplyto='') and type='Note' order by updated asc`
+ query := `select id, name, content, type, published, updated, attributedto, attachment, preview, actor from activitystream where id=$1 and type='Note' order by updated asc`
rows, err := db.Query(query, postID)