Adjust text in mobile notification title (#3168)

This commit is contained in:
Ben Halpern 2019-06-14 21:49:27 -04:00 committed by GitHub
parent 85e3be1f48
commit f262bda14b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,7 @@ module Notifications
json_data: json_data,
)
# Be careful with this basic first implementation of push notification. Has dependency of Pusher/iPhone sort of tough to test reliably.
send_push_notifications(user_id, "@#{comment.user.username} re: #{comment.parent_or_root_article.title}", comment.title, "/notifications/comments") if User.find_by(id: user_id)&.mobile_comment_notifications
send_push_notifications(user_id, "@#{comment.user.username}\nre: #{comment.parent_or_root_article.title.strip}", comment.title, "/notifications/comments") if User.find_by(id: user_id)&.mobile_comment_notifications
end
return unless comment.commentable.organization_id