From 01abb82c37e3fe5b0505154a8bf5f3bc4c712f53 Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 14 Jul 2020 09:36:10 +0000 Subject: prefer zot6 sys channel --- include/channel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/channel.php') diff --git a/include/channel.php b/include/channel.php index 210b6ae91..05f1bd34b 100644 --- a/include/channel.php +++ b/include/channel.php @@ -129,10 +129,10 @@ function create_sys_channel() { * @return array|boolean */ function get_sys_channel() { - $r = q("select * from channel left join xchan on channel_hash = xchan_hash where channel_system = 1 limit 1"); + $r = q("select * from channel left join xchan on channel_hash = xchan_hash where channel_system = 1"); if ($r) - return $r[0]; + return Libzot::zot_record_preferred($r, 'xchan_network'); return false; } -- cgit v1.2.3