From 9e29c136788fc14b9264843e11541bb6a2176e19 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sat, 9 Jun 2018 16:38:15 +0200 Subject: fix issue #1219 --- Zotlabs/Module/Viewsrc.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Zotlabs/Module/Viewsrc.php') diff --git a/Zotlabs/Module/Viewsrc.php b/Zotlabs/Module/Viewsrc.php index 54ab89e81..5900e385a 100644 --- a/Zotlabs/Module/Viewsrc.php +++ b/Zotlabs/Module/Viewsrc.php @@ -28,7 +28,7 @@ class Viewsrc extends \Zotlabs\Web\Controller { $item_normal = item_normal(); if(local_channel() && $item_id) { - $r = q("select id, item_flags, mimetype, item_obscured, body from item where uid in (%d , %d) and id = %d $item_normal limit 1", + $r = q("select id, item_flags, mimetype, item_obscured, body, llink, plink from item where uid in (%d , %d) and id = %d $item_normal limit 1", intval(local_channel()), intval($sys['channel_id']), intval($item_id) @@ -52,8 +52,11 @@ class Viewsrc extends \Zotlabs\Web\Controller { } if(is_ajax()) { - print '
' . t('Source of Item') . ' ' . $r[0]['id'] . '
'; - echo $o; + echo '
'; + echo '
id: ' . $r[0]['id'] . ' | plink | llink
'; + echo '
'; + echo '
' . $o . '
'; + echo '
'; killme(); } -- cgit v1.2.3