mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-08 18:04:14 +01:00
Remove useless call to repo, add todos
This commit is contained in:
parent
3c515c2614
commit
a10a9141f8
1 changed files with 4 additions and 1 deletions
|
@ -272,7 +272,7 @@ func RepositoryInbox(ctx *context.APIContext) {
|
||||||
switch len(users) {
|
switch len(users) {
|
||||||
case 0:
|
case 0:
|
||||||
{
|
{
|
||||||
body, err := getBody(remoteStargazer, ctx.Repo.Owner.HTMLURL(), ctx)
|
body, err := getBody(remoteStargazer, "does not exist yet", ctx) // ToDo: We would need to insert the repo or its owners key here
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(fmt.Errorf("http get failed: %v", err))
|
panic(fmt.Errorf("http get failed: %v", err))
|
||||||
}
|
}
|
||||||
|
@ -292,6 +292,9 @@ func RepositoryInbox(ctx *context.APIContext) {
|
||||||
case 1:
|
case 1:
|
||||||
{
|
{
|
||||||
user = users[0]
|
user = users[0]
|
||||||
|
log.Info("Found user full name was: %v", user.FullName)
|
||||||
|
log.Info("Found user name was: %v", user.Name)
|
||||||
|
log.Info("Found user name was: %v", user.LoginName)
|
||||||
log.Info("%v", user)
|
log.Info("%v", user)
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue