From fb4807953c1cb8fcfe9ab6b3e4b28d7e9c565562 Mon Sep 17 00:00:00 2001 From: Daniel Cadenas Date: Tue, 27 Aug 2024 12:28:10 -0300 Subject: [PATCH] Should check the follower, not the followee --- service/adapters/apns/apns.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/adapters/apns/apns.go b/service/adapters/apns/apns.go index e580d65..2bb8a5a 100644 --- a/service/adapters/apns/apns.go +++ b/service/adapters/apns/apns.go @@ -133,7 +133,7 @@ func (a *APNS) buildFollowChangeNotification(followChange domain.FollowChange, a func followChangePayload(followChange domain.FollowChange) ([]byte, error) { alertMessage := "" - if strings.HasPrefix(followChange.FriendlyFollowee, "npub") { + if strings.HasPrefix(followChange.FriendlyFollower, "npub") { if followChange.ChangeType == "unfollowed" { alertMessage = "You've been unfollowed!" } else {