Skip to content

Commit

Permalink
Upgrade new Web Share Target API (mastodon#9963)
Browse files Browse the repository at this point in the history
* Update manifest.json for new Web Share Target API.

* fix code formatting
  • Loading branch information
gol-cha authored and hiyuki2578 committed Oct 2, 2019
1 parent 07a05e5 commit 6d0eb8d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion app/serializers/manifest_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ def scope
end

def share_target
{ url_template: 'share?title={title}&text={text}&url={url}' }
{
url_template: 'share?title={title}&text={text}&url={url}',
action: 'share',
params: {
title: 'title',
text: 'text',
url: 'url',
},
}
end
end

0 comments on commit 6d0eb8d

Please sign in to comment.