mirror of
https://github.com/friendica/friendica
synced 2024-11-10 02:22:55 +00:00
http status for disallowed feeds
This commit is contained in:
parent
115c8a53bf
commit
36f2930e52
1 changed files with 5 additions and 3 deletions
|
@ -29,7 +29,7 @@ function dfrn_poll_init(&$a) {
|
||||||
|
|
||||||
if(($dfrn_id === '') && (! x($_POST,'dfrn_id'))) {
|
if(($dfrn_id === '') && (! x($_POST,'dfrn_id'))) {
|
||||||
if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) {
|
if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) {
|
||||||
killme();
|
http_status_exit(403);
|
||||||
}
|
}
|
||||||
|
|
||||||
$user = '';
|
$user = '';
|
||||||
|
@ -37,8 +37,10 @@ function dfrn_poll_init(&$a) {
|
||||||
$r = q("SELECT `hidewall`,`nickname` FROM `user` WHERE `user`.`nickname` = '%s' LIMIT 1",
|
$r = q("SELECT `hidewall`,`nickname` FROM `user` WHERE `user`.`nickname` = '%s' LIMIT 1",
|
||||||
dbesc($a->argv[1])
|
dbesc($a->argv[1])
|
||||||
);
|
);
|
||||||
if((! count($r)) || (count($r) && $r[0]['hidewall']))
|
if(! $r)
|
||||||
killme();
|
http_status_exit(404);
|
||||||
|
if(($r[0]['hidewall']) && (! local_user()))
|
||||||
|
http_status_exit(403);
|
||||||
$user = $r[0]['nickname'];
|
$user = $r[0]['nickname'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue