diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-06-03 10:26:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-03 10:26:09 +0200 |
commit | d2f5760ceb12ade0134be5a5fe96e677c5e6c925 (patch) | |
tree | 64164086531e2fc9a4a4abb355add786ba79f3af /app/workers/web | |
parent | c1d0a6a7981b5fe74bdd03c958a558096ea3cde8 (diff) | |
parent | 7bf37551c8ee55d05a5dbca23db2cae7bb572789 (diff) |
Merge pull request #1793 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/workers/web')
-rw-r--r-- | app/workers/web/push_notification_worker.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/web/push_notification_worker.rb b/app/workers/web/push_notification_worker.rb index 57f5b5c22..1ed5bb9e0 100644 --- a/app/workers/web/push_notification_worker.rb +++ b/app/workers/web/push_notification_worker.rb @@ -51,7 +51,7 @@ class Web::PushNotificationWorker private def push_notification_json - json = I18n.with_locale(@subscription.locale || I18n.default_locale) do + json = I18n.with_locale(@subscription.locale.presence || I18n.default_locale) do ActiveModelSerializers::SerializableResource.new( @notification, serializer: Web::NotificationSerializer, |