Fix typo in follow.go

This commit is contained in:
Anthony Wang 2022-07-21 20:07:17 -05:00
parent 5196dcd9a5
commit 85abd9cfe0
No known key found for this signature in database
GPG Key ID: BC96B00AEC5F2D76
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ func Unfollow(ctx context.Context, unfollow ap.Undo) {
objectIRI := follow.Object.GetID()
objectUser, err := personIRIToUser(ctx, objectIRI)
// 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)
return
}