diff options
author | Friendika <info@friendika.com> | 2011-06-08 22:34:22 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-06-08 22:34:22 -0700 |
commit | 894dfde122639cbcb90e4a07143fbe2f1d5c124a (patch) | |
tree | 30069f172617d3d3371267575f0aa488bf818c63 | |
parent | dea721a3f866956e0d0b86316679e05498b1d81c (diff) | |
download | volse-hubzilla-894dfde122639cbcb90e4a07143fbe2f1d5c124a.tar.gz volse-hubzilla-894dfde122639cbcb90e4a07143fbe2f1d5c124a.tar.bz2 volse-hubzilla-894dfde122639cbcb90e4a07143fbe2f1d5c124a.zip |
set permalink on photo tags
-rw-r--r-- | mod/photos.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mod/photos.php b/mod/photos.php index f8749f5f7..18fff703e 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -510,8 +510,15 @@ foreach($_FILES AS $key => $val) { $arr['target'] .= '<link>' . xmlify('<link rel="alternate" type="text/html" href="' . $a->get_baseurl() . '/photos/' . $owner_record['nickname'] . '/image/' . $p[0]['resource-id'] . '" />' . "\n" . '<link rel="preview" type="image/jpeg" href="' . $a->get_baseurl() . "/photo/" . $p[0]['resource-id'] . '-' . $best . '.jpg' . '" />') . '</link></target>'; $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"); + } } } |