mirror of
https://github.com/owncast/owncast.git
synced 2024-11-21 12:18:02 +03:00
Order followers
This commit is contained in:
parent
88b20803b7
commit
56878b8bbe
2 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ SElECT count(*) FROM ap_followers WHERE approved_at is not null;
|
|||
SElECT count(*) FROM ap_outbox;
|
||||
|
||||
-- name: GetFederationFollowersWithOffset :many
|
||||
SELECT iri, inbox, name, username, image, created_at FROM ap_followers WHERE approved_at is not null LIMIT $1 OFFSET $2;
|
||||
SELECT iri, inbox, name, username, image, created_at FROM ap_followers WHERE approved_at is not null ORDER BY created_at DESC LIMIT $1 OFFSET $2;
|
||||
|
||||
-- name: GetRejectedAndBlockedFollowers :many
|
||||
SELECT iri, name, username, image, created_at, disabled_at FROM ap_followers WHERE disabled_at is not null;
|
||||
|
|
|
@ -153,7 +153,7 @@ func (q *Queries) GetFederationFollowerApprovalRequests(ctx context.Context) ([]
|
|||
}
|
||||
|
||||
const getFederationFollowersWithOffset = `-- name: GetFederationFollowersWithOffset :many
|
||||
SELECT iri, inbox, name, username, image, created_at FROM ap_followers WHERE approved_at is not null LIMIT $1 OFFSET $2
|
||||
SELECT iri, inbox, name, username, image, created_at FROM ap_followers WHERE approved_at is not null ORDER BY created_at DESC LIMIT $1 OFFSET $2
|
||||
`
|
||||
|
||||
type GetFederationFollowersWithOffsetParams struct {
|
||||
|
|
Loading…
Reference in a new issue