Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions xExtension-Webhook/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ intitle:security alert
#your-project-name
```

#### Ignore updated articles

FreshRSS also processes articles it already knows when their content changes in the feed. Enable this option to send the webhook only once per article, and not again on such updates.

#### Webhook Settings

- **Webhook URL**: Your webhook endpoint URL
Expand Down
10 changes: 10 additions & 0 deletions xExtension-Webhook/configure.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ declare(strict_types=1);
<small><?= _t('ext.webhook.search_filter_description') ?></small>
</div>
</div>

<div class="form-group">
<label class="group-name" for="ignore_updated"><?= _t('ext.webhook.ignore_updated') ?></label>
<div class="group-controls">
<input type="checkbox" name="ignore_updated" id="ignore_updated" value="1" <?=
$this->getUserConfigurationBool('ignore_updated') ? 'checked="checked"' : '' ?> />
<br />
<small><?= _t('ext.webhook.ignore_updated_description') ?></small>
</div>
</div>
</details>
</fieldset>

Expand Down
2 changes: 2 additions & 0 deletions xExtension-Webhook/i18n/en/ext.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
'description' => 'Webhooks allow external services to be notified when certain events happen.<br />When the specified events happen, we’ll send a HTTP request (usually POST) to the URL you provide.',
'search_filter' => 'Search filter',
'search_filter_description' => 'Uses <a href="https://freshrss.github.io/FreshRSS/en/users/10_filter.html" target="_blank" rel="noopener">FreshRSS search filter syntax</a>. Each line is an OR condition. Leave empty to match all entries.',
'ignore_updated' => 'Ignore updated articles',
'ignore_updated_description' => 'Do not send the webhook again when an already known article is updated (its content changed in the feed).',
'http_body' => 'HTTP Body',
'http_body_description' => 'Must be valid <b>JSON</b> or form data (<b>x-www-form-urlencoded</b>)',
'http_body_placeholder_summary' => 'You can use special placeholders that will be replaced by the actual values:',
Expand Down
2 changes: 2 additions & 0 deletions xExtension-Webhook/i18n/fr/ext.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
'description' => 'Les webhooks permettent de notifier des services externes lorsque certains événements se produisent.<br />Lorsque les événements spécifiés se produisent, nous envoyons une requête HTTP (généralement POST) à l’URL que vous fournissez.',
'search_filter' => 'Filtre de recherche',
'search_filter_description' => 'Utilise la <a href="https://freshrss.github.io/FreshRSS/fr/users/10_filter.html" target="_blank" rel="noopener">syntaxe de filtre de recherche FreshRSS</a>. Chaque ligne est une condition OU. Laisser vide pour correspondre à tous les articles.',
'ignore_updated' => 'Ignorer les articles mis à jour',
'ignore_updated_description' => 'Ne pas envoyer à nouveau le webhook lorsqu’un article déjà connu est mis à jour (son contenu a changé dans le flux).',
'http_body' => 'Corps HTTP',
'http_body_description' => 'Doit être du <b>JSON</b> valide ou des données de formulaire (<b>x-www-form-urlencoded</b>)',
'http_body_placeholder_summary' => 'Vous pouvez utiliser des espaces réservés spéciaux qui seront remplacés par les valeurs réelles :',
Expand Down
2 changes: 1 addition & 1 deletion xExtension-Webhook/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Webhook",
"author": "Lukas Melega, Ryahn",
"description": "Send custom webhook when new article appears (and matches custom criteria)",
"version": "0.2.3",
"version": "0.2.4",
"entrypoint": "Webhook",
"type": "user",
"compatibility": "1.28.2"
Expand Down