Merge branch 'core_fixes' into 'dev'
Core fixes See merge request hubzilla/core!1569
This commit is contained in:
commit
9ebf6bcc92
@ -118,7 +118,7 @@ class DReport {
|
||||
// So if a remote site says they can't find us, that's no big surprise
|
||||
// and just creates a lot of extra report noise
|
||||
|
||||
if(($dr['location'] !== z_root()) && ($dr['sender'] === $rxchan) && ($dr['status'] === 'recipient_not_found'))
|
||||
if(($dr['location'] !== z_root()) && ($dr['sender'] === $rxchan) && ($dr['status'] === 'recipient not found'))
|
||||
return false;
|
||||
|
||||
// If you have a private post with a recipient list, every single site is going to report
|
||||
|
@ -336,7 +336,7 @@ class Libsync {
|
||||
|
||||
$disallowed = array('abook_id','abook_account','abook_channel','abook_rating','abook_rating_text','abook_not_here');
|
||||
|
||||
$fields = db_columns($abook);
|
||||
$fields = db_columns('abook');
|
||||
|
||||
foreach($arr['abook'] as $abook) {
|
||||
|
||||
|
@ -307,7 +307,7 @@ class Libzotdir {
|
||||
if ($ud['ud_addr'] && (! ($ud['ud_flags'] & UPDATE_FLAGS_DELETED))) {
|
||||
$success = false;
|
||||
|
||||
$href = \Zotlabs\Lib\Webfinger::zot_url(punify($url));
|
||||
$href = \Zotlabs\Lib\Webfinger::zot_url(punify($ud['ud_addr']));
|
||||
if($href) {
|
||||
$zf = \Zotlabs\Lib\Zotfinger::exec($href);
|
||||
}
|
||||
@ -651,4 +651,4 @@ class Libzotdir {
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -66,7 +66,7 @@ class ZotURL {
|
||||
|
||||
}
|
||||
|
||||
static public function is_zoturl($s) {
|
||||
static public function is_zoturl($url) {
|
||||
|
||||
if(strpos($url,'x-zot:') === 0) {
|
||||
return true;
|
||||
|
@ -166,7 +166,7 @@ class Acl extends \Zotlabs\Web\Controller {
|
||||
if($extra_channels) {
|
||||
foreach($extra_channels as $channel) {
|
||||
if(perm_is_allowed(intval($channel), get_observer_hash(),'view_contacts')) {
|
||||
if($extra_channel_sql)
|
||||
if($extra_channels_sql)
|
||||
$extra_channels_sql .= ',';
|
||||
$extra_channels_sql .= intval($channel);
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ class Changeaddr extends \Zotlabs\Web\Controller {
|
||||
|
||||
if($account['account_password_changed'] > NULL_DATE) {
|
||||
$d1 = datetime_convert('UTC','UTC','now - 48 hours');
|
||||
if($account['account_password_changed'] > d1) {
|
||||
if($account['account_password_changed'] > $d1) {
|
||||
notice( t('Channel name changes are not allowed within 48 hours of changing the account password.') . EOL);
|
||||
return;
|
||||
}
|
||||
@ -49,7 +49,7 @@ class Changeaddr extends \Zotlabs\Web\Controller {
|
||||
|
||||
if(check_webbie(array($new_address)) !== $new_address) {
|
||||
notice( t('Nickname has unsupported characters or is already being used on this site.') . EOL);
|
||||
return $ret;
|
||||
return;
|
||||
}
|
||||
|
||||
channel_change_address($channel,$new_address);
|
||||
|
@ -116,12 +116,12 @@ class Dirsearch extends \Zotlabs\Web\Controller {
|
||||
$sql_extra .= $this->dir_query_build($joiner,'xchan_name',$name);
|
||||
if($address)
|
||||
$sql_extra .= $this->dir_query_build($joiner,'xchan_addr',$address);
|
||||
if($city)
|
||||
$sql_extra .= $this->dir_query_build($joiner,'xprof_locale',$city);
|
||||
if($locale)
|
||||
$sql_extra .= $this->dir_query_build($joiner,'xprof_locale',$locale);
|
||||
if($region)
|
||||
$sql_extra .= $this->dir_query_build($joiner,'xprof_region',$region);
|
||||
if($post)
|
||||
$sql_extra .= $this->dir_query_build($joiner,'xprof_postcode',$post);
|
||||
if($postcode)
|
||||
$sql_extra .= $this->dir_query_build($joiner,'xprof_postcode',$postcode);
|
||||
if($country)
|
||||
$sql_extra .= $this->dir_query_build($joiner,'xprof_country',$country);
|
||||
if($gender)
|
||||
|
@ -33,7 +33,7 @@ class Subthread extends \Zotlabs\Web\Controller {
|
||||
|
||||
if(! $i) {
|
||||
$i = q("select * from item where id = %d and uid = %d",
|
||||
intval($postid),
|
||||
intval($item_id),
|
||||
intval($sys['channel_id'])
|
||||
);
|
||||
|
||||
|
@ -69,7 +69,7 @@ class Tagger extends \Zotlabs\Web\Controller {
|
||||
$post_type = t('photo');
|
||||
break;
|
||||
case 'event':
|
||||
$targgettype = ACTIVITY_OBJ_EVENT;
|
||||
$targettype = ACTIVITY_OBJ_EVENT;
|
||||
$post_type = t('event');
|
||||
break;
|
||||
default:
|
||||
|
Reference in New Issue
Block a user