mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-01 13:44:06 +01:00
Fix typos and format
This commit is contained in:
parent
d43c4ba739
commit
a8d5e7ba77
1 changed files with 4 additions and 4 deletions
|
@ -109,7 +109,7 @@ func RepositoryInbox(ctx *context.APIContext) {
|
||||||
// get_person_by_rest
|
// get_person_by_rest
|
||||||
bytes := []byte{0} // no body needed for getting user actor
|
bytes := []byte{0} // no body needed for getting user actor
|
||||||
target := opt.Actor.GetID().String() // target is the person actor that originally performed the star activity
|
target := opt.Actor.GetID().String() // target is the person actor that originally performed the star activity
|
||||||
response, err := client.Get(bytes, target) // ToDo: Close body, maybe use in extra function
|
response, err := client.Get(bytes, target)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
@ -119,7 +119,7 @@ func RepositoryInbox(ctx *context.APIContext) {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// parse resonse
|
// parse response
|
||||||
person, err := forgefed.ParsePersonJson(body)
|
person, err := forgefed.ParsePersonJson(body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
|
Loading…
Reference in a new issue