From ce8e5012e9e2217637838778f106fa603d8f17a3 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 27 May 2021 19:58:18 +0000 Subject: [PATCH] Fix reshare of Diaspora posts only with pictures --- src/Module/Item/Activity.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Module/Item/Activity.php b/src/Module/Item/Activity.php index df2be5dd0c..1d44bf9957 100644 --- a/src/Module/Item/Activity.php +++ b/src/Module/Item/Activity.php @@ -31,7 +31,6 @@ use Friendica\Core\Session; use Friendica\Database\DBA; use Friendica\Model\Post; use Friendica\Network\HTTPException; -use Friendica\Util\Strings; /** * Performs an activity (like, dislike, announce, attendyes, attendno, attendmaybe) @@ -90,7 +89,7 @@ class Activity extends BaseModule { $fields = ['uri-id', 'body', 'title', 'author-name', 'author-link', 'author-avatar', 'guid', 'created', 'plink']; $item = Post::selectFirst($fields, ['id' => $itemId, 'private' => [Item::PUBLIC, Item::UNLISTED]]); - if (!DBA::isResult($item) || ($item['body'] == '')) { + if (!DBA::isResult($item)) { return; }