Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

message/sendToFriendアクションでバリデーション時にエラーとなった場合もメールが送信される不具合を修正 #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

upsilon
Copy link

@upsilon upsilon commented Sep 27, 2016

メッセージが相手に到達しない「下書き」の場合とエラーの場合はいずれもメール通知を行うべきではないため、下記の条件を全て満たす場合のみメール送信を行うように修正しました。

  • $action->message がセットされていること
    • バリデーションエラー時には $action->message はセットされない
  • $action->message->is_send が true であること
    • 「下書き」作成時は false になる

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant