mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-01 04:12:10 +00:00
add test & fix compile
This commit is contained in:
parent
4938d38e39
commit
508b4deac8
3 changed files with 35 additions and 5 deletions
|
@ -350,7 +350,8 @@ func (repo *Repository) APIURL() string {
|
|||
// TODO: At least camel case?
|
||||
// TODO: Mv federation related stuff to federated_repo
|
||||
func (repo *Repository) APAPIURL() string {
|
||||
return setting.AppURL + "api/v1/activitypub/repository-id/" + url.PathEscape(string(repo.ID))
|
||||
// TODO: use spintf instead of concat - might mitigate injections
|
||||
return fmt.Sprintf("%vapi/v1/activitypub/repository-id/%v", setting.AppURL, url.PathEscape(fmt.Sprint(repo.ID)))
|
||||
}
|
||||
|
||||
// GetCommitsCountCacheKey returns cache key used for commits count caching.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue