Skip to content

Commit

Permalink
Fix reply-to
Browse files Browse the repository at this point in the history
  • Loading branch information
Kagemaru committed Jan 21, 2025
1 parent f432795 commit 8c0694a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 10 deletions.
15 changes: 8 additions & 7 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,34 +23,35 @@ gem 'decidim-cleaner', github: 'puzzle/decidim-module-cleaner', branch: 'release
gem 'decidim-decidim_awesome', github: 'decidim-ice/decidim-module-decidim_awesome', tag: 'v0.10.2'
gem 'decidim-decidim_geo', github: 'octree-gva/decidim-module-geo', tag: 'v0.2.5'
gem 'decidim-participatory_documents', github: 'openpoke/decidim-module-participatory-documents', tag: '0.2.2'
gem 'decidim-question_captcha', github: 'OpenSourcePolitics/decidim-module-question_captcha', branch: 'release/0.27-stable'
gem 'decidim-question_captcha', github: 'OpenSourcePolitics/decidim-module-question_captcha',
branch: 'release/0.27-stable'
gem 'decidim-survey_multiple_answers', '~> 0.26.2'

gem 'decidim-guest_meeting_registration', github: 'alecslupu-pfa/guest-meeting-registration', branch: 'release/0.27-stable'
gem 'decidim-guest_meeting_registration', github: 'alecslupu-pfa/guest-meeting-registration',
branch: 'release/0.27-stable'

# Had to be set to 0.27-stable because the master reference doesn't exist anymore and the main branch now requires ruby =< 3.1
# Had to be set to 0.27-stable because the master reference doesn't exist anymore and the main branch now requires ruby =< 3.1
gem 'decidim-term_customizer', github: 'mainio/decidim-module-term_customizer', branch: 'release/0.27-stable'

gem 'omniauth-openid-connect', git: 'https://github.com/netsphere-labs/omniauth-openid-connect.git'

gem 'acts_as_textcaptcha' # , '~> 4.5.1'
gem 'acts_as_textcaptcha' # , '~> 4.5.1'
gem 'aws-sdk-s3'
gem 'bootsnap'
gem 'byebug', platform: :mri # , '~> 11.0'
gem 'dalli'
gem 'delayed_job_active_record'
gem 'faker' # , '~> 1.9'
gem 'lograge'
gem 'omniauth_openid_connect'
gem 'prometheus_exporter'
gem 'pry-byebug'
gem 'pry-rails'
gem 'puma'
gem 'sentry-raven'
gem 'uglifier' # , '~> 4.1'

group :development, :test do
gem 'byebug', platform: :mri # , '~> 11.0'
gem 'pry-byebug'

gem 'decidim-dev', DECIDIM_VERSION
end

Expand Down
9 changes: 7 additions & 2 deletions app/mailers/decidim_zuerich/application_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@ module DecidimZuerich
# mailers.
module ApplicationMailer
def set_smtp
reply_to = I18n.t('decidim_zuerich.reply_to', default: "").presence
mail.reply_to = [reply_to] if mail.reply_to.blank? && reply_to
opts = { scope: 'decidim_zuerich.reply_to', default: '' }
tenant_type = organization.tenant_type.presence

reply_to = I18n.t(tenant_type, **opts).presence if tenant_type
reply_to ||= I18n.t(:default, **opts).presence

mail.reply_to = reply_to && [reply_to]

super
end
Expand Down
5 changes: 4 additions & 1 deletion config/locales/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,10 @@ de:
aspsms_gateway:
sms_text: '%{code} ist Ihr Zugangscode auf %{organization}'
sms_originator_max_11_alphabetic_characters: DECIDIM
reply_to: mitwirken-kontakt@zuerich.ch
reply_to:
default:
mitwirken: mitwirken-kontakt@zuerich.ch
meinquartier: kontakt@meinquartier.zuerich
devise:
shared:
links:
Expand Down

0 comments on commit 8c0694a

Please sign in to comment.