Fix lint error
This commit is contained in:
parent
f554846355
commit
1f392f5240
@ -421,7 +421,10 @@ func (p Profile) GetNotificationsForUser(u_id UserID, cursor int64) Feed {
|
|||||||
// Get the user_ids list for each notification. Unlike tweet+retweet_ids, users are needed to render
|
// Get the user_ids list for each notification. Unlike tweet+retweet_ids, users are needed to render
|
||||||
// the notification properly.
|
// the notification properly.
|
||||||
for i := range notifications {
|
for i := range notifications {
|
||||||
err = p.DB.Select(¬ifications[i].UserIDs, `select user_id from notification_users where notification_id = ?`, notifications[i].ID)
|
err = p.DB.Select(¬ifications[i].UserIDs,
|
||||||
|
`select user_id from notification_users where notification_id = ?`,
|
||||||
|
notifications[i].ID,
|
||||||
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user