Merge pull request #785 from blujan/develop

Fix use of NOW() when getting tagged posts
pull/799/head
Matt Baer 1 year ago committed by GitHub
commit 3870749e5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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