diff options
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/shares_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/shares_controller.rb b/app/controllers/shares_controller.rb index 9c738fc4f..3cbaccb35 100644 --- a/app/controllers/shares_controller.rb +++ b/app/controllers/shares_controller.rb @@ -15,13 +15,14 @@ class SharesController < ApplicationController private def initial_state_params + text = [params[:title], params[:text], params[:url]].compact.join(' ') { settings: Web::Setting.find_by(user: current_user)&.data || {}, push_subscription: current_account.user.web_push_subscription(current_session), current_account: current_account, token: current_session.token, admin: Account.find_local(Setting.site_contact_username), - text: params[:text], + text: text, } end |