provide local_block - block_public as far as content but can connect with the grid.
This commit is contained in:
parent
40cfcdad2d
commit
5c0f0df59a
|
@ -2122,8 +2122,11 @@ function local_delivery($importer,$data) {
|
||||||
|
|
||||||
|
|
||||||
$rawtags = $feed->get_feed_tags( NAMESPACE_DFRN, 'owner');
|
$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) {
|
if($rawtags) {
|
||||||
$elems = $rawtags[0]['child'][SIMPLEPIE_NAMESPACE_ATOM_10];
|
$elems = $rawtags[0]['child'][SIMPLEPIE_NAMESPACE_ATOM_10];
|
||||||
if($elems['name'][0]['attribs'][NAMESPACE_DFRN]['updated']) {
|
if($elems['name'][0]['attribs'][NAMESPACE_DFRN]['updated']) {
|
||||||
|
|
|
@ -756,9 +756,11 @@ function dfrn_request_content(&$a) {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) {
|
if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) {
|
||||||
|
if(! get_config('system','local_block')) {
|
||||||
notice( t('Public access denied.') . EOL);
|
notice( t('Public access denied.') . EOL);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue