From 757237cbb4815f340df04d6bdb9af31bb892f263 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 15 May 2025 18:39:05 +0000 Subject: Revert "make sure sql_extra is prepared for the c table" This reverts commit 869b047fde97fe4e9605177680768c584ad0a7c3. --- Zotlabs/Module/Pin.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Zotlabs/Module') diff --git a/Zotlabs/Module/Pin.php b/Zotlabs/Module/Pin.php index 14a45c10d..de3c75622 100644 --- a/Zotlabs/Module/Pin.php +++ b/Zotlabs/Module/Pin.php @@ -29,9 +29,8 @@ class Pin extends \Zotlabs\Web\Controller { if(! $observer) http_status_exit(403, 'Forbidden'); - $r = q("SELECT * FROM item WHERE id = %d AND uid = %d AND id = parent AND item_private = 0 LIMIT 1", - intval($item_id), - intval(local_channel()) + $r = q("SELECT * FROM item WHERE id = %d AND id = parent AND item_private = 0 LIMIT 1", + $item_id ); if(! $r) { notice(t('Unable to locate original post.')); -- cgit v1.2.3