diff options
author | FChannel <=> | 2021-01-28 20:29:11 -0800 |
---|---|---|
committer | FChannel <=> | 2021-01-28 20:29:11 -0800 |
commit | e358eb07ec4ce873f750c0b75d7b23df4da2fbb8 (patch) | |
tree | 1cd9eb8854255e6ed3cd4ab0a8a69bfc1ff7279f /Database.go | |
parent | 0d4cd485b5225cfa737842de6ba0e96d6d21722b (diff) |
view individual post from url
Diffstat (limited to 'Database.go')
-rw-r--r-- | Database.go | 2 |
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) |