From 7aa880543f0731db383109ff735a7831f7ad4e16 Mon Sep 17 00:00:00 2001
From: Michael <heluecht@pirati.ca>
Date: Mon, 25 Jun 2018 20:38:32 +0000
Subject: [PATCH] Fix shadow posts

---
 src/Model/Item.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Model/Item.php b/src/Model/Item.php
index 3b46e7f15d..4847a1171f 100644
--- a/src/Model/Item.php
+++ b/src/Model/Item.php
@@ -1705,7 +1705,7 @@ class Item extends BaseObject
 	 */
 	public static function addShadowPost($itemid)
 	{
-		$item = dba::selectFirst('item', [], ['id' => $itemid]);
+		$item = self::selectFirst(self::ITEM_FIELDLIST, ['id' => $itemid]);
 		if (!DBM::is_result($item)) {
 			return;
 		}
-- 
2.39.5