aboutsummaryrefslogtreecommitdiff
path: root/internal/route/repo/branch.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/route/repo/branch.go')
-rw-r--r--internal/route/repo/branch.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/route/repo/branch.go b/internal/route/repo/branch.go
index dd2508dd..9da017e0 100644
--- a/internal/route/repo/branch.go
+++ b/internal/route/repo/branch.go
@@ -146,7 +146,7 @@ func DeleteBranchPost(c *context.Context) {
Ref: branchName,
RefType: "branch",
PusherType: api.PUSHER_TYPE_USER,
- Repo: c.Repo.Repository.APIFormat(nil),
+ Repo: c.Repo.Repository.APIFormatLegacy(nil),
Sender: c.User.APIFormat(),
}); err != nil {
log.Error("Failed to prepare webhooks for %q: %v", db.HOOK_EVENT_DELETE, err)