mirror of
https://github.com/friendica/friendica
synced 2025-05-05 22:24:11 +02:00
Transfer all item shadow functions to the item class
This commit is contained in:
parent
0c4d7cd1a1
commit
c4d3ab6878
5 changed files with 144 additions and 214 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
namespace Friendica\Worker;
|
||||
|
||||
require_once("include/threads.php");
|
||||
use Friendica\Model\Item;
|
||||
|
||||
class CreateShadowEntry {
|
||||
public static function execute($message_id = 0) {
|
||||
|
@ -16,6 +16,6 @@ class CreateShadowEntry {
|
|||
return;
|
||||
}
|
||||
|
||||
add_shadow_entry($message_id);
|
||||
Item::addShadowPost($message_id);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
<?php
|
||||
namespace Friendica\Worker;
|
||||
|
||||
require_once("include/threads.php");
|
||||
|
||||
class ThreadUpdate {
|
||||
public static function execute() {
|
||||
update_threads();
|
||||
update_threads_mention();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue