Fix typo in follow.go

This commit is contained in:
Anthony Wang 2022-07-21 20:07:17 -05:00
parent 5196dcd9a5
commit 85abd9cfe0
Signed by: a
GPG key ID: BC96B00AEC5F2D76

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
}