]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/CreateShadowEntry.php
Merge pull request #5289 from annando/item-central-content
[friendica.git] / src / Worker / CreateShadowEntry.php
index cf95ec622cb5b28e66d23f5134797d3f8bb2fcc4..97f526a2199eab0ff5d86ccd5938106b9a8df294 100644 (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);
        }
 }