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 Gargron committed Feb 2, 2019
1 parent 3de63b3 commit b253d3e
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 b253d3e

Please sign in to comment.