From: Zach Prezkuta <fermion@gmx.com>
Date: Tue, 9 Oct 2012 15:45:54 +0000 (-0600)
Subject: allow changing the lockview content with a plugin
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=96a245409b04f32c1610843b0b784ab65981500a;p=friendica.git

allow changing the lockview content with a plugin
---

diff --git a/mod/lockview.php b/mod/lockview.php
index 0307103f87..0ae54c8c12 100644
--- a/mod/lockview.php
+++ b/mod/lockview.php
@@ -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']))