From 5c0f0df59aa661b37c5328eb11ecb48d57f8481d Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 6 Sep 2012 20:17:50 -0700 Subject: [PATCH] provide local_block - block_public as far as content but can connect with the grid. --- include/items.php | 7 +++++-- mod/dfrn_request.php | 6 ++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/include/items.php b/include/items.php index 8039066af4..e71c10fae4 100755 --- a/include/items.php +++ b/include/items.php @@ -2122,8 +2122,11 @@ function local_delivery($importer,$data) { $rawtags = $feed->get_feed_tags( NAMESPACE_DFRN, 'owner'); - if(! $rawtags) - $rawtags = $feed->get_feed_tags( SIMPLEPIE_NAMESPACE_ATOM_10, 'author'); + +// Fallback should not be needed here. If it isn't DFRN it won't have DFRN updated tags +// if(! $rawtags) +// $rawtags = $feed->get_feed_tags( SIMPLEPIE_NAMESPACE_ATOM_10, 'author'); + if($rawtags) { $elems = $rawtags[0]['child'][SIMPLEPIE_NAMESPACE_ATOM_10]; if($elems['name'][0]['attribs'][NAMESPACE_DFRN]['updated']) { diff --git a/mod/dfrn_request.php b/mod/dfrn_request.php index cec2d7f8b0..b3033c0aa2 100644 --- a/mod/dfrn_request.php +++ b/mod/dfrn_request.php @@ -756,8 +756,10 @@ function dfrn_request_content(&$a) { */ if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) { - notice( t('Public access denied.') . EOL); - return; + if(! get_config('system','local_block')) { + notice( t('Public access denied.') . EOL); + return; + } } -- 2.39.2