]> git.mxchange.org Git - friendica.git/commitdiff
allow changing the lockview content with a plugin
authorZach Prezkuta <fermion@gmx.com>
Tue, 9 Oct 2012 15:45:54 +0000 (09:45 -0600)
committerZach Prezkuta <fermion@gmx.com>
Tue, 9 Oct 2012 15:45:54 +0000 (09:45 -0600)
mod/lockview.php

index 0307103f87ab53dd3815fc1147efdc6c410f8b80..0ae54c8c125f92d07616113a7b52865e3d61fed1 100644 (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']))