mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 09:32:24 -05:00
should be done poking now
This commit is contained in:
parent
5c000620e2
commit
4fd0bdcf2f
1 changed files with 1 additions and 4 deletions
|
|
@ -92,7 +92,7 @@ func init() {
|
||||||
Column("id").
|
Column("id").
|
||||||
Where("? < ?", bun.Ident("id"), maxID).
|
Where("? < ?", bun.Ident("id"), maxID).
|
||||||
OrderExpr("? DESC", bun.Ident("id")).
|
OrderExpr("? DESC", bun.Ident("id")).
|
||||||
Limit(1000).
|
Limit(200).
|
||||||
Scan(ctx); err != nil && !errors.Is(err, sql.ErrNoRows) {
|
Scan(ctx); err != nil && !errors.Is(err, sql.ErrNoRows) {
|
||||||
return gtserror.Newf("error selecting unthreaded statuses: %w", err)
|
return gtserror.Newf("error selecting unthreaded statuses: %w", err)
|
||||||
}
|
}
|
||||||
|
|
@ -265,9 +265,6 @@ func (sr *statusRethreader) rethreadStatus(ctx context.Context, tx bun.Tx, statu
|
||||||
|
|
||||||
// Ensure the passed status
|
// Ensure the passed status
|
||||||
// has up-to-date information.
|
// has up-to-date information.
|
||||||
// This may have changed from
|
|
||||||
// the initial batch selection
|
|
||||||
// to the rethreadStatus() call.
|
|
||||||
upToDateValues := make(map[string]any, 3)
|
upToDateValues := make(map[string]any, 3)
|
||||||
if err := tx.NewSelect().
|
if err := tx.NewSelect().
|
||||||
TableExpr("? AS ?", bun.Ident("statuses"), bun.Ident("status")).
|
TableExpr("? AS ?", bun.Ident("statuses"), bun.Ident("status")).
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue