forked from mirrors/pronouns.cc
raise flag limit from 100 to 500
This commit is contained in:
parent
e98d86bd2e
commit
7c94c088e0
1 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ type MemberFlag struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
MaxPrideFlags = 100
|
MaxPrideFlags = 500
|
||||||
MaxPrideFlagTitleLength = 100
|
MaxPrideFlagTitleLength = 100
|
||||||
MaxPrideFlagDescLength = 500
|
MaxPrideFlagDescLength = 500
|
||||||
)
|
)
|
||||||
|
@ -59,7 +59,7 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
func (db *DB) AccountFlags(ctx context.Context, userID xid.ID) (fs []PrideFlag, err error) {
|
func (db *DB) AccountFlags(ctx context.Context, userID xid.ID) (fs []PrideFlag, err error) {
|
||||||
sql, args, err := sq.Select("*").From("pride_flags").Where("user_id = ?", userID).OrderBy("lower(name)").ToSql()
|
sql, args, err := sq.Select("*").From("pride_flags").Where("user_id = ?", userID).OrderBy("lower(name)", "id").ToSql()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.Wrap(err, "building query")
|
return nil, errors.Wrap(err, "building query")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue