diff options
author | りんすき <428rinsuki+git@gmail.com> | 2018-01-18 01:08:10 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2018-01-17 17:08:10 +0100 |
commit | fbe7756da6e817c3de633f624f5a28bc133e78c8 (patch) | |
tree | 19a31c883cdcf17ce284f90fd45fe46d5d742815 /app/controllers | |
parent | 0a103c774977cda29e5c02e697b4632f98bcc621 (diff) |
implement web share target (#6278)
* web share target * fix * fix
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 fc2469dea..3ec831a72 100644 --- a/app/controllers/shares_controller.rb +++ b/app/controllers/shares_controller.rb @@ -14,13 +14,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 |