Skip to content

Commit

Permalink
Merge pull request #62 from planetary-social/fix-notification-text-on…
Browse files Browse the repository at this point in the history
…-missing-friendly-id

Should check the follower, not the followee
  • Loading branch information
dcadenas authored Aug 27, 2024
2 parents 8738b57 + fb48079 commit cf760a0
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 cf760a0

Please sign in to comment.