whitespace

This commit is contained in:
zotlabs 2017-03-30 21:04:55 -07:00
parent 6118570118
commit d1a018f2e8

View File

@ -98,7 +98,7 @@ function import_channel($channel, $account_id, $seize) {
$r = q("select * from channel where channel_account_id = %d and channel_guid = '%s' limit 1", $r = q("select * from channel where channel_account_id = %d and channel_guid = '%s' limit 1",
intval($account_id), intval($account_id),
$channel['channel_guid'] // Already dbesc'd dbesc($channel['channel_guid'])
); );
if(! $r) { if(! $r) {
logger('mod_import: channel not found. ' . print_r($channel,true)); logger('mod_import: channel not found. ' . print_r($channel,true));
@ -205,13 +205,14 @@ function import_hublocs($channel, $hublocs, $seize, $moving = false) {
$hubloc['hubloc_deleted'] = 1; $hubloc['hubloc_deleted'] = 1;
} }
$arr = array( $arr = [
'guid' => $hubloc['hubloc_guid'], 'guid' => $hubloc['hubloc_guid'],
'guid_sig' => $hubloc['hubloc_guid_sig'], 'guid_sig' => $hubloc['hubloc_guid_sig'],
'url' => $hubloc['hubloc_url'], 'url' => $hubloc['hubloc_url'],
'url_sig' => $hubloc['hubloc_url_sig'], 'url_sig' => $hubloc['hubloc_url_sig'],
'sitekey' => ((array_key_exists('hubloc_sitekey',$hubloc)) ? $hubloc['hubloc_sitekey'] : '') 'sitekey' => ((array_key_exists('hubloc_sitekey',$hubloc)) ? $hubloc['hubloc_sitekey'] : '')
); ];
if(($hubloc['hubloc_hash'] === $channel['channel_hash']) && intval($hubloc['hubloc_primary']) && ($seize)) if(($hubloc['hubloc_hash'] === $channel['channel_hash']) && intval($hubloc['hubloc_primary']) && ($seize))
$hubloc['hubloc_primary'] = 0; $hubloc['hubloc_primary'] = 0;
@ -1443,7 +1444,8 @@ function import_webpage_element($element, $channel, $type) {
// The author is either the owner or whomever was specified // The author is either the owner or whomever was specified
$arr['author_xchan'] = (($element['author_xchan']) ? $element['author_xchan'] : get_observer_hash()); $arr['author_xchan'] = (($element['author_xchan']) ? $element['author_xchan'] : get_observer_hash());
// Import mimetype if it is a valid mimetype for the element // Import mimetype if it is a valid mimetype for the element
$mimetypes = [ 'text/bbcode', $mimetypes = [
'text/bbcode',
'text/html', 'text/html',
'text/markdown', 'text/markdown',
'text/plain', 'text/plain',