File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ package models
7
7
8
8
import (
9
9
"fmt"
10
- "path"
11
10
"regexp"
12
11
"sort"
13
12
"strconv"
@@ -324,7 +323,7 @@ func (issue *Issue) GetIsRead(userID int64) error {
324
323
325
324
// APIURL returns the absolute APIURL to this issue.
326
325
func (issue * Issue ) APIURL () string {
327
- return issue . Repo . APIURL () + "/" + path . Join ( " issues" , fmt . Sprint ( issue .Index ) )
326
+ return fmt . Sprintf ( "%s/ issues/%d " , issue . Repo . APIURL (), issue .Index )
328
327
}
329
328
330
329
// HTMLURL returns the absolute URL to this issue.
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ package models
8
8
9
9
import (
10
10
"fmt"
11
- "path"
12
11
"strings"
13
12
14
13
"code.gitea.io/gitea/modules/git"
@@ -249,7 +248,7 @@ func (c *Comment) APIURL() string {
249
248
return ""
250
249
}
251
250
252
- return c . Issue . Repo . APIURL () + "/" + path . Join ( " issues/comments" , fmt . Sprint ( c .ID ) )
251
+ return fmt . Sprintf ( "%s/ issues/comments/%d " , c . Issue . Repo . APIURL (), c .ID )
253
252
}
254
253
255
254
// IssueURL formats a URL-string to the issue
You can’t perform that action at this time.
0 commit comments