From: friendica Date: Sat, 31 Mar 2012 06:19:14 +0000 (-0700) Subject: viewsrc only on your own stuff X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9ffb8f131d5d1fb8bf4d722cacbca707bb373b58;p=friendica-addons.git viewsrc only on your own stuff --- diff --git a/viewsrc.tgz b/viewsrc.tgz index a9be888a..2ace240a 100644 Binary files a/viewsrc.tgz and b/viewsrc.tgz differ diff --git a/viewsrc/viewsrc.php b/viewsrc/viewsrc.php index a610b76c..f165e9c5 100644 --- a/viewsrc/viewsrc.php +++ b/viewsrc/viewsrc.php @@ -32,7 +32,7 @@ EOS; } function viewsrc_item_photo_menu(&$a,&$b) { - if(! local_user()) + if((! local_user()) || (local_user() != $b['item']['uid'])) return; $b['menu'] = array_merge( array( t('View Source') => $a->get_baseurl() . '/viewsrc/'. $b['item']['id']), $b['menu']);