From 9ffb8f131d5d1fb8bf4d722cacbca707bb373b58 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 30 Mar 2012 23:19:14 -0700 Subject: [PATCH] viewsrc only on your own stuff --- viewsrc.tgz | Bin 593 -> 609 bytes viewsrc/viewsrc.php | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/viewsrc.tgz b/viewsrc.tgz index a9be888a806c6219cceb7cf37184f67c8f7c78d8..2ace240a6fef124011513f485166f93df404300f 100644 GIT binary patch delta 603 zcmV-h0;K)X1mOgKABzY8-Jy0*00ZrmO>f#j5QcrlzhZ(=yhf>wiESccs3Nt;w1-H! zAY?6O!B%XqwO*%*n*8_fIzaP5q)JWFL+6nId1hzkotZV)8T(O-#5LZLfnqcYjA7u9 zhC|;N1mQ6Bz1F_L@VwD+5O|?~to+{44?+Wi_Y}3IsU;PE07gNRbtbN}@|APdItaa! zlar6o^nqM&_P_acs-w%Uh0|sxdWDo!O{-e)oiMkE( zoPmBmYh=oQ#Td@BD+cG=QA3nUS&dzHH+(1IghM%YtB-4%tENn}j;*{n zE7k7uoY?Tw>La(+cDEhw&1E_qzAvayc9qRS;O-8~mxJ9jys#o4DXQde}% zVpcByIOi@vCA&BGG}4q$T4~C6Z01GsziLPK^P-)9?E!MwqepPqJ)||0@q*T@5&Akf pVC@>VoF_%wnn&=v(8E6d^*;)eF#;402!bFV%`aa21(5(K007}ZE;|4K delta 584 zcmV-O0=NC)1knV4ABzY8=Kyn000ZrmQE%EX6ovCje#IR^I6+-PXb2SzOqI6BZV#3E zf>30FAyE@Ma-6Q!)c-!40^16eCavuz?S2wOaePnCxz});v#+&Ged`tJYeu7?H5i7Y z!63By!)OqN!DfAn6$GQxFzWYD&3Z5h!_b1^Yns~8)QU=f0IQ_wI+wROe`a5`9!A00 z+1XoodP8ov^WR>*Dyv@n9cI8$6h1fqAQ}cw<{w7kz=HmZJ2}FCKL7ZGp15t>ey?Xk z4?fe9jbVEj%)&=jr!ucpF8CNOmP=?~>xXb98kw>-6gj^EB_LOPWJ26H#28AdOem3*j5p*22wg4(_m3QS^Kh^Eq|QA*kgn*O zC5$hBTXSEa#UAV=YievH|#My0saJn6O0^N>qb*K(~KQ#|#BvWOP zF}fsk@Foz)F?{-RWw+wTgEqBWt&X$PbWEvPAas^Vw(3pVdwcCUalIAg>HR|7IVM}{ z!FE#?IK&7Pj zT0yQdne%w#fO5!BzYyZWWC|wxnyF+#Yt~3JWe> W9|e;?0v8PbEZ+gpc2hI}C;$Knv>w+0 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']); -- 2.39.5