From ce2afca0e424cfcf5242b55a375ebb29ae51f8f6 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Mon, 8 May 2017 11:57:41 -0100 Subject: [PATCH 1/4] open-graph Signed-off-by: Maxence Lange --- lib/public/RichObjectStrings/Definitions.php | 43 ++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/lib/public/RichObjectStrings/Definitions.php b/lib/public/RichObjectStrings/Definitions.php index f1208ae0f2c..ad7cf06b3da 100644 --- a/lib/public/RichObjectStrings/Definitions.php +++ b/lib/public/RichObjectStrings/Definitions.php @@ -227,6 +227,49 @@ class Definitions { ], ], ], + 'open-graph' => [ + 'author' => 'Nextcloud', + 'app' => 'mood', + 'since' => '12.0.0', + 'parameters' => [ + 'id' => [ + 'since' => '12.0.0', + 'required' => true, + 'description' => 'The id used to identify the open graph data on the instance', + 'example' => '42', + ], + 'thumb' => [ + 'since' => '12.0.0', + 'required' => false, + 'description' => 'The full URL of the open graph thumbnail', + 'example' => 'http://localhost/index.php/apps/mood/data/image?url=https%3A%2F%2Fthumb.example.com%2Fimage.png', + ], + 'title' => [ + 'since' => '12.0.0', + 'required' => true, + 'description' => 'The open graph title from the website', + 'example' => 'This is a website', + ], + 'description' => [ + 'since' => '12.0.0', + 'required' => false, + 'description' => 'The open graph description from the website', + 'example' => 'This is the description of the website', + ], + 'website' => [ + 'since' => '12.0.0', + 'required' => false, + 'description' => 'The name of the described website', + 'example' => 'Nextcloud - App Store', + ], + 'link' => [ + 'since' => '12.0.0', + 'required' => false, + 'description' => 'The full link to the website', + 'example' => 'https://apps.nextcloud.com/apps/mood', + ], + ], + ], 'pending-federated-share' => [ 'author' => 'Nextcloud', 'app' => 'dav', From 93e4bd3495e4eb43f3281a800503b4781b1b6a9b Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Tue, 9 May 2017 07:10:16 -0100 Subject: [PATCH 2/4] using title as name Signed-off-by: Maxence Lange --- lib/public/RichObjectStrings/Definitions.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/public/RichObjectStrings/Definitions.php b/lib/public/RichObjectStrings/Definitions.php index ad7cf06b3da..2b5788d97a2 100644 --- a/lib/public/RichObjectStrings/Definitions.php +++ b/lib/public/RichObjectStrings/Definitions.php @@ -238,16 +238,10 @@ class Definitions { 'description' => 'The id used to identify the open graph data on the instance', 'example' => '42', ], - 'thumb' => [ - 'since' => '12.0.0', - 'required' => false, - 'description' => 'The full URL of the open graph thumbnail', - 'example' => 'http://localhost/index.php/apps/mood/data/image?url=https%3A%2F%2Fthumb.example.com%2Fimage.png', - ], - 'title' => [ + 'name' => [ 'since' => '12.0.0', 'required' => true, - 'description' => 'The open graph title from the website', + 'description' => 'The open graph title of the website', 'example' => 'This is a website', ], 'description' => [ @@ -256,6 +250,12 @@ class Definitions { 'description' => 'The open graph description from the website', 'example' => 'This is the description of the website', ], + 'thumb' => [ + 'since' => '12.0.0', + 'required' => false, + 'description' => 'The full URL of the open graph thumbnail', + 'example' => 'http://localhost/index.php/apps/mood/data/image?url=https%3A%2F%2Fthumb.example.com%2Fimage.png', + ], 'website' => [ 'since' => '12.0.0', 'required' => false, From 90b1c73e812642ea5410c4e4b6d603162ee5ea47 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Tue, 9 May 2017 07:14:52 -0100 Subject: [PATCH 3/4] my name as author Signed-off-by: Maxence Lange --- lib/public/RichObjectStrings/Definitions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/public/RichObjectStrings/Definitions.php b/lib/public/RichObjectStrings/Definitions.php index 2b5788d97a2..2fc9b44fe60 100644 --- a/lib/public/RichObjectStrings/Definitions.php +++ b/lib/public/RichObjectStrings/Definitions.php @@ -228,7 +228,7 @@ class Definitions { ], ], 'open-graph' => [ - 'author' => 'Nextcloud', + 'author' => 'Maxence Lange', 'app' => 'mood', 'since' => '12.0.0', 'parameters' => [ From a089e084116e88b3cad35b2f3a294445d78d8a3d Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 9 May 2017 10:44:11 +0200 Subject: [PATCH 4/4] Add circle as well Signed-off-by: Joas Schilling --- lib/public/RichObjectStrings/Definitions.php | 25 ++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/lib/public/RichObjectStrings/Definitions.php b/lib/public/RichObjectStrings/Definitions.php index 2fc9b44fe60..b938fa5e6cb 100644 --- a/lib/public/RichObjectStrings/Definitions.php +++ b/lib/public/RichObjectStrings/Definitions.php @@ -177,6 +177,31 @@ class Definitions { ], ], ], + 'circle' => [ + 'author' => 'Maxence Lange', + 'app' => 'circles', + 'since' => '12.0.0', + 'parameters' => [ + 'id' => [ + 'since' => '12.0.0', + 'required' => true, + 'description' => 'The id used to identify the circle on the instance', + 'example' => '42', + ], + 'name' => [ + 'since' => '12.0.0', + 'required' => true, + 'description' => 'The display name of the circle which should be used in the visual representation', + 'example' => 'My friends', + ], + 'link' => [ + 'since' => '12.0.0', + 'required' => true, + 'description' => 'The full URL to the circle', + 'example' => 'http://localhost/index.php/apps/circles/#42', + ], + ], + ], 'email' => [ 'author' => 'Nextcloud', 'app' => 'sharebymail',