fix: rss route (#2008)

* fix: rss route

* chore: update
This commit is contained in:
boojack
2023-07-22 12:58:17 +08:00
committed by GitHub
parent 4231ec5a1a
commit 9138ab8095
4 changed files with 38 additions and 3 deletions

View File

@@ -262,7 +262,6 @@ func (s *APIV1Service) registerUserRoutes(g *echo.Group) {
g.GET("/user/:username", func(c echo.Context) error {
ctx := c.Request().Context()
username := c.Param("username")
user, err := s.Store.GetUser(ctx, &store.FindUser{Username: &username})
if err != nil {
return echo.NewHTTPError(http.StatusInternalServerError, "Failed to find user").SetInternal(err)