Merge remote-tracking branch 'mike/master' into dev
This commit is contained in:
commit
3a9f149c80
@ -102,7 +102,7 @@ class Activity_filter {
|
|||||||
'icon' => 'folder',
|
'icon' => 'folder',
|
||||||
'url' => '#',
|
'url' => '#',
|
||||||
'sel' => (($filter_active == 'file') ? true : false),
|
'sel' => (($filter_active == 'file') ? true : false),
|
||||||
'title' => sprintf(t('Show posts that i have filed to %s'), $t['term']),
|
'title' => sprintf(t('Show posts that I have filed to %s'), $t['term']),
|
||||||
'sub' => $tsub
|
'sub' => $tsub
|
||||||
|
|
||||||
];
|
];
|
||||||
|
@ -51,7 +51,7 @@ class Forums {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
$r1 = q("select abook_id, xchan_hash, xchan_name, xchan_url, xchan_photo_s from abook left join xchan on abook_xchan = xchan_hash where xchan_deleted = 0 and abook_channel = %d and abook_pending = 0 and abook_ignored = 0 and abook_blocked = 0 $sql_extra order by xchan_name $limit ",
|
$r1 = q("select abook_id, xchan_hash, xchan_name, xchan_url, xchan_photo_s from abook left join xchan on abook_xchan = xchan_hash where xchan_deleted = 0 and abook_channel = %d and abook_pending = 0 and abook_ignored = 0 and abook_blocked = 0 and abook_archived = 0 $sql_extra order by xchan_name $limit ",
|
||||||
intval(local_channel())
|
intval(local_channel())
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -374,14 +374,19 @@ function contact_remove($channel_id, $abook_id) {
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
||||||
$r = q("select id from item where (owner_xchan = '%s' or author_xchan = '%s') and uid = %d",
|
$r = q("select id from item where (owner_xchan = '%s' or author_xchan = '%s') and uid = %d and item_retained = 0 and item_starred = 0",
|
||||||
dbesc($abook['abook_xchan']),
|
dbesc($abook['abook_xchan']),
|
||||||
dbesc($abook['abook_xchan']),
|
dbesc($abook['abook_xchan']),
|
||||||
intval($channel_id)
|
intval($channel_id)
|
||||||
);
|
);
|
||||||
if($r) {
|
if($r) {
|
||||||
|
$r = fetch_post_tags($r,true);
|
||||||
|
|
||||||
foreach($r as $rr) {
|
foreach($r as $rr) {
|
||||||
drop_item($rr['id'],false);
|
$terms = get_terms_oftype($item['term'],TERM_FILE);
|
||||||
|
if(! $terms) {
|
||||||
|
drop_item($rr['id'],false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user