From 2146ac91a004bad2a6c4dc1d01599a85515928f5 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 26 Dec 2016 21:52:03 +0100 Subject: [PATCH] Follow requests send e-mail notifications, but are excluded from notifications API Better initial state for unlisted/nsfw toggles --- .../compose/components/compose_form.jsx | 5 +++-- .../components/account_authorize.jsx | 2 +- .../api/v1/notifications_controller.rb | 2 +- app/mailers/notification_mailer.rb | 9 +++++++++ app/models/follow_request.rb | 2 ++ app/models/notification.rb | 18 ++++++++++++------ app/models/user.rb | 2 +- app/services/follow_service.rb | 7 ++++++- app/services/notify_service.rb | 5 +++++ .../follow_request.text.erb | 5 +++++ config/locales/en.yml | 3 +++ 11 files changed, 48 insertions(+), 12 deletions(-) create mode 100644 app/views/notification_mailer/follow_request.text.erb diff --git a/app/assets/javascripts/components/features/compose/components/compose_form.jsx b/app/assets/javascripts/components/features/compose/components/compose_form.jsx index 760b0efd10e..012e39c9112 100644 --- a/app/assets/javascripts/components/features/compose/components/compose_form.jsx +++ b/app/assets/javascripts/components/features/compose/components/compose_form.jsx @@ -20,6 +20,7 @@ const messages = defineMessages({ const ComposeForm = React.createClass({ propTypes: { + intl: React.PropTypes.object.isRequired, text: React.PropTypes.string.isRequired, suggestion_token: React.PropTypes.string, suggestions: ImmutablePropTypes.list, @@ -129,7 +130,7 @@ const ComposeForm = React.createClass({ - + {({ opacity, height }) => - + {({ opacity, height }) =>