Fix use of NOW() when getting tagged posts

pull/785/head
Brennan Lujan 1 year ago
parent 4aad0338bf
commit 87b3585c44
  1. 2
      database.go

@ -1320,7 +1320,7 @@ func (db *datastore) GetAllPostsTaggedIDs(c *Collection, tag string, includeFutu
timeCondition := ""
if !includeFuture {
timeCondition = "AND created <= NOW()"
timeCondition = "AND created <= " + db.now()
}
var rows *sql.Rows
var err error

Loading…
Cancel
Save