summaryrefslogtreecommitdiff
path: root/classes/API.php
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2025-05-02 21:27:50 +0300
committerAndrew Dolgov <fox@fakecake.org>2025-05-02 21:27:50 +0300
commitb30f8c93a00ce1ae2c582ca4c7f1d5d8425220ee (patch)
tree59b05d952497b3fe832f17cee31c03c4b45ed0c4 /classes/API.php
parentdc6ea08ca490c889f4e85bd697e6bdffb95a22f4 (diff)
rename article mark/publish hooks
Diffstat (limited to 'classes/API.php')
-rw-r--r--classes/API.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/API.php b/classes/API.php
index 83eaa22b8..6db05198a 100644
--- a/classes/API.php
+++ b/classes/API.php
@@ -285,10 +285,10 @@ class API extends Handler {
$sth->execute([...$article_ids, $_SESSION['uid']]);
if ($field == 'marked')
- PluginHost::getInstance()->run_hooks(PluginHost::HOOK_ARTICLES_MARKED, $article_ids);
+ PluginHost::getInstance()->run_hooks(PluginHost::HOOK_ARTICLES_MARK_TOGGLED, $article_ids);
if ($field == 'published')
- PluginHost::getInstance()->run_hooks(PluginHost::HOOK_ARTICLES_PUBLISHED, $article_ids);
+ PluginHost::getInstance()->run_hooks(PluginHost::HOOK_ARTICLES_PUBLISH_TOGGLED, $article_ids);
$num_updated = $sth->rowCount();