prevent follows of and notifications to deceased channels

This commit is contained in:
friendica
2014-04-07 02:55:00 -07:00
parent 7d429b2894
commit 10167fdf51
5 changed files with 23 additions and 5 deletions

View File

@@ -18,8 +18,9 @@ function notification($params) {
}
if($params['to_xchan']) {
$y = q("select channel.*, account.* from channel left join account on channel_account_id = account_id
where channel_hash = '%s' limit 1",
dbesc($params['to_xchan'])
where channel_hash = '%s' and not (channel_pageflags & %d) limit 1",
dbesc($params['to_xchan']),
intval(PAGE_REMOVED)
);
}
if($x & $y) {