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:28:37 +0300
commit3098dc0a163b4b70105da2eae1237057ae97ccb1 (patch)
tree1433d63b437b719bca1f11f9b6a605352aac3677 /classes/API.php
parent0520ca2226f095046eaf57aa8125e88f69ccf376 (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();