Commit adc39606 authored by Andrei Mihu's avatar Andrei Mihu
Browse files

Correct cursor usage in group listings using only open/closed group state filter.

parent 6ad5070e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4,7 +4,8 @@ All notable changes to this project are documented below.
The format is based on [keep a changelog](http://keepachangelog.com) and this project uses [semantic versioning](http://semver.org).

## [Unreleased]

### Fixed
- Correct cursor usage in group listings using only open/closed group state filter.

## [3.16.0] - 2023-04-18
### Added
+1 −1
Original line number Diff line number Diff line
@@ -1854,7 +1854,7 @@ FROM groups
WHERE disable_time = '1970-01-01 00:00:00 UTC'
AND state = $2`
		if cursor != nil {
			params = append(params, cursor.GetState(), cursor.EdgeCount, cursor.Lang, cursor.ID)
			params = append(params, cursor.GetState(), cursor.Lang, cursor.EdgeCount, cursor.ID)
			query += " AND (disable_time, state, lang_tag, edge_count, id) > ('1970-01-01 00:00:00 UTC', $3, $4, $5, $6)"
		}
	default: