diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2025-05-02 21:27:50 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2025-05-02 21:27:50 +0300 |
| commit | b30f8c93a00ce1ae2c582ca4c7f1d5d8425220ee (patch) | |
| tree | 59b05d952497b3fe832f17cee31c03c4b45ed0c4 /classes/Plugin.php | |
| parent | dc6ea08ca490c889f4e85bd697e6bdffb95a22f4 (diff) | |
rename article mark/publish hooks
Diffstat (limited to 'classes/Plugin.php')
| -rw-r--r-- | classes/Plugin.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/classes/Plugin.php b/classes/Plugin.php index b66e2082c..3165d62f4 100644 --- a/classes/Plugin.php +++ b/classes/Plugin.php @@ -714,22 +714,25 @@ abstract class Plugin { } /** Invoked after passed article IDs were either marked (i.e. starred) or unmarked. + * * **Note** resulting state of the articles is not passed to this function (because * tt-rss may do invert operation on ID range), you will need to get this from the database. * @param array<int> $article_ids ref_ids * @return void */ - function hook_articles_marked(array $article_ids) { + function hook_articles_mark_toggled(array $article_ids) { user_error("Dummy method invoked.", E_USER_ERROR); } /** Invoked after passed article IDs were either published or unpublished. + * * **Note** resulting state of the articles is not passed to this function (because * tt-rss may do invert operation on ID range), you will need to get this from the database. + * * @param array<int> $article_ids ref_ids * @return void */ - function hook_articles_published(array $article_ids) { + function hook_articles_publish_toggled(array $article_ids) { user_error("Dummy method invoked.", E_USER_ERROR); } } |