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
12 changes: 6 additions & 6 deletions xExtension-Webhook/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ Customize the webhook payload using placeholders:
"feed": "{feed_name}",
"url": "{url}",
"content": "{content}",
"date": "{date}",
"timestamp": "{date_timestamp}",
"published": "{date_published}",
"author": "{author}",
"tags": "{tags}",
"user": "{user}"
Expand All @@ -78,12 +77,13 @@ Customize the webhook payload using placeholders:
| `{title}` | Article title |
| `{url}` | Article URL |
| `{content}` | Article content (HTML) |
| `{date}` | Publication date (string) |
| `{date_timestamp}` | Publication date as Unix timestamp |
| `{date_published}` | Publication date (ISO 8601) |
| `{date_received}` | Date received by FreshRSS (ISO 8601) |
| `{date_modified}` | Last modified date (ISO 8601, `null` if never modified) |
| `{date_user_modified}` | Last user-modified date (ISO 8601, `null` if never modified) |
| `{author}` | Article authors |
| `{feed_name}` | Feed name |
| `{feed_url}` | Feed URL |
| `{thumbnail_url}` | Thumbnail (image) URL |
| `{tags}` | Article tags (separated by " #") |
| `{user}` | Username in FreshRSS |

Expand Down Expand Up @@ -129,7 +129,7 @@ Customize the webhook payload using placeholders:
"title": "{title}",
"url": "{url}",
"feed": "{feed_name}",
"timestamp": "{date_timestamp}"
"published": "{date_published}"
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion xExtension-Webhook/extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ private function sendArticle(FreshRSS_Entry $entry): void {
'{feed_name}' => htmlspecialchars_decode($entry->feed()?->name() ?? '', ENT_QUOTES),
'{feed_url}' => htmlspecialchars_decode($entry->feed()?->url() ?? '', ENT_QUOTES),
'{url}' => htmlspecialchars_decode($entry->link(), ENT_QUOTES),
'{content}' => htmlspecialchars_decode($entry->content(), ENT_QUOTES),
'{content}' => $entry->content(),
'{date_published}' => timestampToMachineDate($entry->date(raw: true)),
'{date_received}' => timestampToMachineDate($entry->dateAdded(raw: true)),
'{date_modified}' => $entry->lastModified() === null ? null : timestampToMachineDate($entry->lastModified()),
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.5",
"version": "0.2.6",
"entrypoint": "Webhook",
"type": "user",
"compatibility": "1.28.2"
Expand Down