Skip to content

Commit

Permalink
Should check the follower, not the followee
Browse files Browse the repository at this point in the history
  • Loading branch information
dcadenas committed Aug 27, 2024
1 parent 8738b57 commit fb48079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/adapters/apns/apns.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit fb48079

Please sign in to comment.