]> git.mxchange.org Git - friendica-addons.git/commitdiff
viewsrc only on your own stuff
authorfriendica <info@friendica.com>
Sat, 31 Mar 2012 06:19:14 +0000 (23:19 -0700)
committerfriendica <info@friendica.com>
Sat, 31 Mar 2012 06:19:14 +0000 (23:19 -0700)
viewsrc.tgz
viewsrc/viewsrc.php

index a9be888a806c6219cceb7cf37184f67c8f7c78d8..2ace240a6fef124011513f485166f93df404300f 100644 (file)
Binary files a/viewsrc.tgz and b/viewsrc.tgz differ
index a610b76cac399f3a6215eedc2301c286f3d3384c..f165e9c5353ba73dd63bf2537bb691074eccb0d7 100644 (file)
@@ -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']);