mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-18 10:27:30 -06:00
[bugfix] rename include_types[] to types[] (#3023)
This commit is contained in:
parent
d2b3d37724
commit
4ce5c37df5
6 changed files with 19 additions and 19 deletions
|
|
@ -200,7 +200,7 @@ func (n *notificationDB) GetAccountNotifications(
|
|||
sinceID string,
|
||||
minID string,
|
||||
limit int,
|
||||
includeTypes []string,
|
||||
types []string,
|
||||
excludeTypes []string,
|
||||
) ([]*gtsmodel.Notification, error) {
|
||||
// Ensure reasonable
|
||||
|
|
@ -238,9 +238,9 @@ func (n *notificationDB) GetAccountNotifications(
|
|||
frontToBack = false // page up
|
||||
}
|
||||
|
||||
if len(includeTypes) > 0 {
|
||||
if len(types) > 0 {
|
||||
// Include only requested notification types.
|
||||
q = q.Where("? IN (?)", bun.Ident("notification.notification_type"), bun.In(includeTypes))
|
||||
q = q.Where("? IN (?)", bun.Ident("notification.notification_type"), bun.In(types))
|
||||
}
|
||||
|
||||
if len(excludeTypes) > 0 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue