3 namespace Friendica\Module;
5 use Friendica\Core\L10n;
6 use Friendica\Core\Renderer;
10 * @author Hypolite Petovan <mrpetovan@gmail.com>
12 class Itemsource extends \Friendica\BaseModule
14 public static function content()
16 if (!is_site_admin()) {
22 if (!empty($_REQUEST['guid'])) {
23 $item = Model\Item::selectFirst([], ['guid' => $_REQUEST['guid']]);
25 $conversation = Model\Conversation::getByItemUri($item['uri']);
27 $item_uri = $item['uri'];
28 $source = htmlspecialchars($conversation['source']);
31 $tpl = Renderer::getMarkupTemplate('debug/itemsource.tpl');
32 $o = Renderer::replaceMacros($tpl, [
33 '$guid' => ['guid', L10n::t('Item Guid'), htmlentities(defaults($_REQUEST, 'guid', '')), ''],
35 '$item_uri' => $item_uri