diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-07-10 19:37:16 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-10 11:37:16 +0000 |
commit | 72b6bc8cafe1d64ff30481170cd68b85a710c67e (patch) | |
tree | 1156e8b92053cb588863ee1ea05db3e804a0831f /routers/web/repo/repo.go | |
parent | 4ea2a6de81ab6adde436d77e2743095fafa6a7a9 (diff) | |
download | gitea-72b6bc8cafe1d64ff30481170cd68b85a710c67e.tar.gz gitea-72b6bc8cafe1d64ff30481170cd68b85a710c67e.zip |
Refactor webhook (#31587)
A more complete fix for #31588
1. Make "generic" code more readable
2. Clarify HTML or Markdown for the payload content
Diffstat (limited to 'routers/web/repo/repo.go')
-rw-r--r-- | routers/web/repo/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/repo/repo.go b/routers/web/repo/repo.go index 70dcbae0e1..2ef548b5b2 100644 --- a/routers/web/repo/repo.go +++ b/routers/web/repo/repo.go @@ -668,7 +668,7 @@ func SearchRepo(ctx *context.Context) { Template: repo.IsTemplate, Mirror: repo.IsMirror, Stars: repo.NumStars, - HTMLURL: repo.HTMLURL(), + HTMLURL: repo.HTMLURL(ctx), Link: repo.Link(), Internal: !repo.IsPrivate && repo.Owner.Visibility == api.VisibleTypePrivate, }, |