X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fviewsrc.php;h=3fa4eaed53bad2b53686a59aef0af30acf1f5645;hb=7da830c9f6a6404c8e4ff0902d0de3e54baab7b9;hp=8900e44db446663bde0c5b29c59ebe72e577b297;hpb=8aa25523721303b6883e1a793f20997f8a33ec0a;p=friendica.git diff --git a/mod/viewsrc.php b/mod/viewsrc.php old mode 100755 new mode 100644 index 8900e44db4..3fa4eaed53 --- a/mod/viewsrc.php +++ b/mod/viewsrc.php @@ -18,13 +18,19 @@ function viewsrc_content(&$a) { $r = q("SELECT `item`.`body` FROM `item` WHERE `item`.`uid` = %d AND `item`.`visible` = 1 AND `item`.`deleted` = 0 + and `item`.`moderated` = 0 AND `item`.`id` = '%s' LIMIT 1", intval(local_user()), dbesc($item_id) ); if(count($r)) - $o .= str_replace("\n",'
',$r[0]['body']); + if(is_ajax()) { + echo str_replace("\n",'
',$r[0]['body']); + killme(); + } else { + $o .= str_replace("\n",'
',$r[0]['body']); + } return $o; }