diff options
author | Tobias Diekershoff <tobias.diekershoff@gmx.net> | 2011-05-26 08:20:27 +0200 |
---|---|---|
committer | Tobias Diekershoff <tobias.diekershoff@gmx.net> | 2011-05-26 08:20:27 +0200 |
commit | 5e01432c6f15714370f3fd4f07eaf35615052955 (patch) | |
tree | aa4ae49533710af5c301dd2f160bd6344d30cc10 /mod/dfrn_poll.php | |
parent | e9df9d22c050c32739cf5a54dbda23f66d094280 (diff) | |
parent | 61b730d567ac4bb648a8d4399f35ca0d32328d40 (diff) | |
download | volse-hubzilla-5e01432c6f15714370f3fd4f07eaf35615052955.tar.gz volse-hubzilla-5e01432c6f15714370f3fd4f07eaf35615052955.tar.bz2 volse-hubzilla-5e01432c6f15714370f3fd4f07eaf35615052955.zip |
Merge branch 'master' of git://github.com/friendika/friendika
Diffstat (limited to 'mod/dfrn_poll.php')
-rw-r--r-- | mod/dfrn_poll.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/dfrn_poll.php b/mod/dfrn_poll.php index ef8469523..7d8568188 100644 --- a/mod/dfrn_poll.php +++ b/mod/dfrn_poll.php @@ -31,6 +31,12 @@ function dfrn_poll_init(&$a) { killme(); } + $r = q("SELECT `hidewall` FROM `profile` LEFT JOIN `user` ON `profile`.`uid` = `user`.`uid` WHERE `user`.`nickname` = '%s' AND `profile`.`is-default` = 1 LIMIT 1", + dbesc($a->argv[1]) + ); + if(count($r) && $r[0]['hidewall']) + killme(); + logger('dfrn_poll: public feed request from ' . $_SERVER['REMOTE_ADDR'] ); header("Content-type: application/atom+xml"); $o = get_feed_for($a, '', $a->argv[1],$last_update); |