about summary refs log tree commit diff
path: root/app/serializers
diff options
context:
space:
mode:
authorJenkins <jenkins@jenkins.ninjawedding.org>2018-01-17 16:17:10 +0000
committerJenkins <jenkins@jenkins.ninjawedding.org>2018-01-17 16:17:10 +0000
commitaa2bf07281ba1e41c9e32a760684c15081524a7c (patch)
treea5ae679254948e9825676c87aca2ca4d164806c3 /app/serializers
parent60ff0869603c80fbaae407e492e0e7f60e2e40e6 (diff)
parentfbe7756da6e817c3de633f624f5a28bc133e78c8 (diff)
Merge remote-tracking branch 'tootsuite/master' into glitchsoc/master
Diffstat (limited to 'app/serializers')
-rw-r--r--app/serializers/manifest_serializer.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/serializers/manifest_serializer.rb b/app/serializers/manifest_serializer.rb
index 95bcc21bb..859ef0d14 100644
--- a/app/serializers/manifest_serializer.rb
+++ b/app/serializers/manifest_serializer.rb
@@ -6,7 +6,8 @@ class ManifestSerializer < ActiveModel::Serializer
 
   attributes :name, :short_name, :description,
              :icons, :theme_color, :background_color,
-             :display, :start_url, :scope
+             :display, :start_url, :scope,
+             :share_target
 
   def name
     object.site_title
@@ -49,4 +50,8 @@ class ManifestSerializer < ActiveModel::Serializer
   def scope
     root_url
   end
+
+  def share_target
+    { url_template: 'share?title={title}&text={text}&url={url}' }
+  end
 end