From 0765840d9d0998bd09a2cf7c4fe97785c791fc9b Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Mon, 9 Dec 2019 09:41:18 +0100 Subject: tec: Add ~ID~ placeholder in share system (#2707) I'm currently playing with a small extension to improve the email sharing system. It allows to create a message and send an email directly through FreshRSS. For that, I need to retrieve the shared article. I could use the link or the title but it would be less robust and less efficient. Reference: https://github.com/FreshRSS/FreshRSS/issues/300 --- app/shares.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'app/shares.php') diff --git a/app/shares.php b/app/shares.php index 9df83617a..7778dbd5c 100644 --- a/app/shares.php +++ b/app/shares.php @@ -8,10 +8,12 @@ * For each share there is different configuration options. Here is the description * of those options: * - url is a mandatory option. It is a string representing the share URL. It - * supports 3 different placeholders for custom data. The ~URL~ placeholder + * supports 4 different placeholders for custom data. The ~URL~ placeholder * represents the URL of the system used to share, it is configured by the * user. The ~LINK~ placeholder represents the link of the shared article. - * The ~TITLE~ placeholder represents the title of the shared article. + * The ~TITLE~ placeholder represents the title of the shared article. The + * ~ID~ placeholder represents the id of the shared article (only useful + * for internal use) * - transform is an array of transformation to apply on links and titles * - help is a URL to a help page * - form is the type of form to display during configuration. It's either -- cgit v1.2.3