diff --git a/api/subreddits_get_by_name.go b/api/subreddits_get_by_name.go index 10d67ad..26e1123 100644 --- a/api/subreddits_get_by_name.go +++ b/api/subreddits_get_by_name.go @@ -112,10 +112,11 @@ func (sgb *SubredditGetByNameImageParams) CountQuery() (expr []bob.Mod[*dialect. expr = append(expr, sm.Where( models.ImageColumns.PostTitle.Like(arg). - Or(models.ImageColumns.PostURL.Like(arg). - Or(models.ImageColumns.ImageRelativePath.Like(arg)), - ), - )) + Or(models.ImageColumns.PostURL.Like(arg)). + Or(models.ImageColumns.ImageRelativePath.Like(arg)). + Or(models.ImageColumns.PostAuthor.Like(arg)), + ), + ) } if !sgb.After.IsZero() { diff --git a/views/components/body.templ b/views/components/body.templ index 3a4df3e..b73fcb3 100644 --- a/views/components/body.templ +++ b/views/components/body.templ @@ -3,7 +3,7 @@ package components import "github.com/tigorlazuardi/redmage/views" templ Body(c *views.Context) { -
+ @Navigation(c) {