diff options
author | friendica <info@friendica.com> | 2014-04-07 02:55:00 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-04-07 02:55:00 -0700 |
commit | 10167fdf515e69c4645da9b0a020d0594c7a55a3 (patch) | |
tree | a07c2394b9aa0ed8fc017a9af4c976ec10e5c70e /include/enotify.php | |
parent | 7d429b28940848cbf0cdf397ed664a594b28d994 (diff) | |
download | volse-hubzilla-10167fdf515e69c4645da9b0a020d0594c7a55a3.tar.gz volse-hubzilla-10167fdf515e69c4645da9b0a020d0594c7a55a3.tar.bz2 volse-hubzilla-10167fdf515e69c4645da9b0a020d0594c7a55a3.zip |
prevent follows of and notifications to deceased channels
Diffstat (limited to 'include/enotify.php')
-rw-r--r-- | include/enotify.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/enotify.php b/include/enotify.php index 5be21f180..7ab4fe5ed 100644 --- a/include/enotify.php +++ b/include/enotify.php @@ -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) { |