Commit e80a173c authored by Zot's avatar Zot Committed by Mario

x-social-relay tags errantly converted to associative array


(cherry picked from commit 3d03b87b)
parent 22bf4e07
......@@ -121,7 +121,7 @@ function diaspora_well_known(&$b) {
$arr = array(
'subscribe' => (($disabled) ? false : true),
'scope' => $scope,
'tags' => (($tags) ? $tags : [])
'tags' => (($tags) ? array_values($tags) : [])
);
header('Content-type: application/json');
......
......@@ -150,7 +150,7 @@ function diaspora_build_relay_tags() {
if(preg_match('|^a:[0-9]+:{.*}$|s',$rr['v'])) {
$x = unserialize($rr['v']);
if($x && is_array($x))
$alltags = array_unique(array_merge($alltags,$x));
$alltags = array_values(array_unique(array_merge($alltags,$x)));
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment