From 8515aa6966536c40f1a6c3e4cf0647401485f7d8 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 1 Feb 2024 16:29:23 +0000 Subject: fix issues related to b64mid to uuid conversion --- Zotlabs/Lib/ThreadItem.php | 2 +- Zotlabs/Widget/Pinned.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Zotlabs') diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php index b6df1baf1..016dc5d25 100644 --- a/Zotlabs/Lib/ThreadItem.php +++ b/Zotlabs/Lib/ThreadItem.php @@ -384,7 +384,7 @@ class ThreadItem { call_hooks('dropdown_extras',$dropdown_extras_arr); $dropdown_extras = $dropdown_extras_arr['dropdown_extras']; - //$midb64 = gen_link_id($item['mid']); + $midb64 = $item['uuid']; $mids = [ $item['uuid'] ]; $response_mids = []; foreach($response_verbs as $v) { diff --git a/Zotlabs/Widget/Pinned.php b/Zotlabs/Widget/Pinned.php index 764b19e38..91a9f45b9 100644 --- a/Zotlabs/Widget/Pinned.php +++ b/Zotlabs/Widget/Pinned.php @@ -203,7 +203,7 @@ class Pinned { if(empty($mids_list)) return []; - $r = q("SELECT * FROM item WHERE mid IN ( '%s' ) AND uid = %d AND id = parent AND item_private = 0 ORDER BY created DESC", + $r = q("SELECT * FROM item WHERE uuid IN ( '%s' ) AND uid = %d AND id = parent AND item_private = 0 ORDER BY created DESC", dbesc(implode(",", $mids_list)), intval($this->uid) ); -- cgit v1.2.3