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($a->argv[1])) {
26 $guid = defaults($_REQUEST['guid'], $guid);
31 $item = Model\Item::selectFirst([], ['guid' => $guid]);
33 $conversation = Model\Conversation::getByItemUri($item['uri']);
35 $item_uri = $item['uri'];
36 $source = $conversation['source'];
39 $tpl = Renderer::getMarkupTemplate('debug/itemsource.tpl');
40 $o = Renderer::replaceMacros($tpl, [
41 '$guid' => ['guid', L10n::t('Item Guid'), defaults($_REQUEST, 'guid', ''), ''],
43 '$item_uri' => $item_uri