forked from forgejo/forgejo
Cleanup, handle invalid usernames for ActivityPub person GET request
Signed-off-by: Anthony Wang <ta180m@pm.me>
This commit is contained in:
parent
ebef769703
commit
46973f99fa
3 changed files with 6 additions and 4 deletions
|
@ -35,6 +35,9 @@ func Person(ctx *context.APIContext) {
|
|||
// "$ref": "#/responses/ActivityPub"
|
||||
|
||||
user := user.GetUserByParamsName(ctx, "username")
|
||||
if user == nil {
|
||||
return
|
||||
}
|
||||
username := ctx.Params("username")
|
||||
|
||||
person := streams.NewActivityStreamsPerson()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue