mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-08-06 14:17:27 +02:00
deal with published hook in _create_published_article
This commit is contained in:
parent
5f70e41118
commit
0520ca2226
@ -98,6 +98,8 @@ class Article extends Handler_Protected {
|
||||
int_id = ? AND owner_uid = ?");
|
||||
$sth->execute([$int_id, $owner_uid]);
|
||||
|
||||
PluginHost::getInstance()->run_hooks(PluginHost::HOOK_ARTICLES_PUBLISHED, [$ref_id]);
|
||||
|
||||
} else {
|
||||
|
||||
$sth = $pdo->prepare("INSERT INTO ttrss_user_entries
|
||||
@ -106,6 +108,8 @@ class Article extends Handler_Protected {
|
||||
VALUES
|
||||
(?, '', NULL, NULL, ?, true, '', '', NOW(), '', false, NOW())");
|
||||
$sth->execute([$ref_id, $owner_uid]);
|
||||
|
||||
PluginHost::getInstance()->run_hooks(PluginHost::HOOK_ARTICLES_PUBLISHED, [$ref_id]);
|
||||
}
|
||||
|
||||
if (count($labels) != 0) {
|
||||
@ -144,6 +148,8 @@ class Article extends Handler_Protected {
|
||||
(?, '', NULL, NULL, ?, true, '', '', NOW(), '', false, NOW())");
|
||||
$sth->execute([$ref_id, $owner_uid]);
|
||||
|
||||
PluginHost::getInstance()->run_hooks(PluginHost::HOOK_ARTICLES_PUBLISHED, [$ref_id]);
|
||||
|
||||
if (count($labels) != 0) {
|
||||
foreach ($labels as $label) {
|
||||
Labels::add_article($ref_id, trim($label), $owner_uid);
|
||||
|
Loading…
Reference in New Issue
Block a user