Transfer all item shadow functions to the item class

This commit is contained in:
Michael 2018-01-16 22:23:19 +00:00
parent 0c4d7cd1a1
commit c4d3ab6878
5 changed files with 144 additions and 214 deletions

View file

@ -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);
}
}