From: Friendika Date: Thu, 9 Jun 2011 05:34:22 +0000 (-0700) Subject: set permalink on photo tags X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=894dfde122639cbcb90e4a07143fbe2f1d5c124a;p=friendica.git set permalink on photo tags --- diff --git a/mod/photos.php b/mod/photos.php index f8749f5f7c..18fff703ef 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -510,8 +510,15 @@ foreach($_FILES AS $key => $val) { $arr['target'] .= '' . xmlify('' . "\n" . '') . ''; $item_id = item_store($arr); - if($item_id) + if($item_id) { + q("UPDATE `item` SET `plink` = '%s' WHERE `uid` = %d AND `id` = %d LIMIT 1", + dbesc($a->get_baseurl() . '/display/' . $owner_record['nickname'] . '/' . $item_id), + intval($page_owner_uid), + intval($item_id) + ); + proc_run('php',"include/notifier.php","tag","$item_id"); + } } }