From 01659d731f3b3c2d4dabbf2618c0521ddb8321d6 Mon Sep 17 00:00:00 2001 From: Philipp Date: Sat, 23 Oct 2021 20:17:12 +0200 Subject: [PATCH] Fix FSuggestselect --- src/Worker/Delivery.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Worker/Delivery.php b/src/Worker/Delivery.php index 44fded2c53..3970090160 100644 --- a/src/Worker/Delivery.php +++ b/src/Worker/Delivery.php @@ -67,12 +67,12 @@ class Delivery $uid = $target_item['uid']; } elseif ($cmd == self::SUGGESTION) { try { - $target_item = DI::fsuggest()->selectOneById($post_uriid); + $target_item = DI::fsuggest()->selectOneById($post_uriid)->toArray(); } catch (FriendSuggestNotFoundException $e) { DI::logger()->info('Cannot find FriendSuggestion', ['id' => $post_uriid]); return; } - $uid = $target_item->uid; + $uid = $target_item['uid']; } elseif ($cmd == self::RELOCATION) { $uid = $post_uriid; $target_item = [];