From 4866ed52836028008af795da65faa2c0cd6e5df2 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Sun, 24 Jun 2018 21:56:58 -0700 Subject: remove the white-space pre-wrap property on code blocks. This should probably be done with the word-break property instead --- include/items.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'include') diff --git a/include/items.php b/include/items.php index ab42b7cd3..83ee219a2 100755 --- a/include/items.php +++ b/include/items.php @@ -980,11 +980,7 @@ function empty_acl($item) { } function encode_item($item,$mirror = false) { - $x = array(); - $x['type'] = 'activity'; - $x['encoding'] = 'zot'; - -// logger('encode_item: ' . print_r($item,true)); + $x = []; $r = q("select channel_id from channel where channel_id = %d limit 1", intval($item['uid']) @@ -1362,9 +1358,7 @@ function encode_item_flags($item) { } function encode_mail($item,$extended = false) { - $x = array(); - $x['type'] = 'mail'; - $x['encoding'] = 'zot'; + $x = []; if(array_key_exists('mail_obscured',$item) && intval($item['mail_obscured'])) { if($item['title']) -- cgit v1.2.3