From eec4845cd0dd179020a61e9d3ba4d5b10fe458a2 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 23 Apr 2023 09:23:39 +0000 Subject: add the conversation endpoint and implement paginated fetch for zot requests in mod item --- Zotlabs/Module/Search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Zotlabs/Module/Search.php') diff --git a/Zotlabs/Module/Search.php b/Zotlabs/Module/Search.php index 6601da29d..eb8f238e9 100644 --- a/Zotlabs/Module/Search.php +++ b/Zotlabs/Module/Search.php @@ -75,7 +75,7 @@ class Search extends Controller { if ($f) { $mid = $f[0]['message_id']; foreach ($f as $m) { - if (strpos($search, $m['message_id']) === 0) { + if (str_starts_with($url, $m['message_id'])) { $mid = $m['message_id']; break; } -- cgit v1.2.3 From 8a14e4261d3247dc02254cb91fdb9b82e051f324 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 23 Apr 2023 18:44:39 +0000 Subject: check for uuid so that will be also catch items that were posted from alternate locations --- Zotlabs/Module/Search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Zotlabs/Module/Search.php') diff --git a/Zotlabs/Module/Search.php b/Zotlabs/Module/Search.php index eb8f238e9..6b1060570 100644 --- a/Zotlabs/Module/Search.php +++ b/Zotlabs/Module/Search.php @@ -58,7 +58,7 @@ class Search extends Controller { $o .= search($search, 'search-box', '/search', ((local_channel()) ? true : false)); - if (local_channel() && strpos($search, 'https://') === 0 && !$update && !$load) { + if (local_channel() && str_starts_with($search, 'https://') && !$update && !$load) { $url = htmlspecialchars_decode($search); -- cgit v1.2.3