Fix typo in follow.go
This commit is contained in:
parent
5196dcd9a5
commit
85abd9cfe0
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ func Unfollow(ctx context.Context, unfollow ap.Undo) {
|
||||||
objectIRI := follow.Object.GetID()
|
objectIRI := follow.Object.GetID()
|
||||||
objectUser, err := personIRIToUser(ctx, objectIRI)
|
objectUser, err := personIRIToUser(ctx, objectIRI)
|
||||||
// Must be a local user
|
// Must be a local user
|
||||||
if strings.Contains(objectUser.Name, "@") || err != nil {
|
if err != nil || strings.Contains(objectUser.Name, "@") {
|
||||||
log.Warn("Couldn't find object user for follow", err)
|
log.Warn("Couldn't find object user for follow", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue