aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Sse_bs.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-01-27 20:18:28 +0000
committerMario <mario@mariovavti.com>2024-01-27 20:18:28 +0000
commitb806a3ccc2663655dd189f689706c199b28e58b5 (patch)
treebf0f158f498edf80c0a955333055b7dd339434fc /Zotlabs/Module/Sse_bs.php
parent5e780ba089aa8493eb5bec30558345b070ef808c (diff)
downloadvolse-hubzilla-b806a3ccc2663655dd189f689706c199b28e58b5.tar.gz
volse-hubzilla-b806a3ccc2663655dd189f689706c199b28e58b5.tar.bz2
volse-hubzilla-b806a3ccc2663655dd189f689706c199b28e58b5.zip
use std functions
Diffstat (limited to 'Zotlabs/Module/Sse_bs.php')
-rw-r--r--Zotlabs/Module/Sse_bs.php14
1 files changed, 4 insertions, 10 deletions
diff --git a/Zotlabs/Module/Sse_bs.php b/Zotlabs/Module/Sse_bs.php
index 78adf1859..2e9904cd3 100644
--- a/Zotlabs/Module/Sse_bs.php
+++ b/Zotlabs/Module/Sse_bs.php
@@ -121,12 +121,7 @@ class Sse_bs extends Controller {
$mids = [];
$str = '';
- $mids_all_json = Cache::get('sse_mids_all_' . session_id());
-
- if (!$mids_all_json)
- $mids_all_json = '[]';
-
- $mids_all = json_decode($mids_all_json, true);
+ $mids_all = unserialise(Cache::get('sse_mids_all_' . session_id()));
foreach($arr as $a) {
$mid_str = '\'' . dbesc(unpack_link_id($a)) . '\'';
@@ -137,7 +132,7 @@ class Sse_bs extends Controller {
}
}
- Cache::set('sse_mids_all_' . session_id(), json_encode($mids_all));
+ Cache::set('sse_mids_all_' . session_id(), serialise($mids_all));
if(! self::$uid) {
return;
@@ -448,9 +443,8 @@ class Sse_bs extends Controller {
$sql_extra2 = " AND CASE WHEN verb = '" . ACTIVITY_SHARE . "' THEN owner_xchan ELSE author_xchan END IN (" . self::$xchans . ") ";
$sql_extra3 = '';
- $sse_mids_all_json = Cache::get('sse_mids_all_' . session_id());
- if ($sse_mids_all_json) {
- $sse_mids_all = json_decode($sse_mids_all_json, true);
+ $sse_mids_all = unserialise(Cache::get('sse_mids_all_' . session_id()));
+ if ($sse_mids_all) {
$sql_extra3 = " AND mid NOT IN (" . protect_sprintf(implode(',', $sse_mids_all)) . ") ";
}