allow changing the lockview content with a plugin

This commit is contained in:
Zach Prezkuta 2012-10-09 09:45:54 -06:00
parent c0c8869f89
commit 96a245409b

View file

@ -24,8 +24,13 @@ function lockview_content(&$a) {
if(! count($r))
killme();
$item = $r[0];
if($item['uid'] != local_user())
call_hooks('lockview_content', $item);
if($item['uid'] != local_user()) {
echo t('Remote privacy information not available.') . '<br />';
killme();
}
if(($item['private'] == 1) && (! strlen($item['allow_cid'])) && (! strlen($item['allow_gid']))