diff options
author | Exploding Dragon <explodingfkl@gmail.com> | 2024-12-09 02:16:26 +0100 |
---|---|---|
committer | Exploding Dragon <explodingfkl@gmail.com> | 2024-12-09 02:16:26 +0100 |
commit | 8d05268a92a1b58de246125117b64a015c4ca2b8 (patch) | |
tree | 33b1be0e7436fa35a094943c98a4b89ad6605610 /routers/web | |
parent | cleanup package route (diff) | |
parent | Merge pull request 'Update dependency katex to v0.16.14 (forgejo)' (#6205) fr... (diff) | |
download | forgejo-8d05268a92a1b58de246125117b64a015c4ca2b8.tar.xz forgejo-8d05268a92a1b58de246125117b64a015c4ca2b8.zip |
Merge branch 'forgejo' into cleanup-pkg-arch-route
Diffstat (limited to 'routers/web')
-rw-r--r-- | routers/web/user/notification.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/user/notification.go b/routers/web/user/notification.go index d3c9365dfe..c3358dbf62 100644 --- a/routers/web/user/notification.go +++ b/routers/web/user/notification.go @@ -113,7 +113,7 @@ func getNotifications(ctx *context.Context) { sess := db.GetEngine(ctx).Table("notification") if setting.Database.Type.IsMySQL() { - sess = sess.IndexHint("USE", "JOIN", "IDX_notification_user_id") + sess = sess.IndexHint("USE", "", "IDX_notification_user_id") } sess.Where("user_id = ?", ctx.Doer.ID). And("status = ? OR status = ?", status, activities_model.NotificationStatusPinned). |