diff options
author | Friendika <info@friendika.com> | 2011-02-16 02:07:11 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-02-16 02:07:11 -0800 |
commit | 9f020573748af28cc09cbde18e96cfc68641ce7b (patch) | |
tree | 7f70d8374ca24ee81e192e6da5973ed3b9c0023b /mod/item.php | |
parent | c5f5102396cee8ec691fd22d486070ec3d5f243d (diff) | |
download | volse-hubzilla-9f020573748af28cc09cbde18e96cfc68641ce7b.tar.gz volse-hubzilla-9f020573748af28cc09cbde18e96cfc68641ce7b.tar.bz2 volse-hubzilla-9f020573748af28cc09cbde18e96cfc68641ce7b.zip |
provide permalink for posts, include permalinks in feeds and imported from feeds
Diffstat (limited to 'mod/item.php')
-rw-r--r-- | mod/item.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/item.php b/mod/item.php index 2cc2b9eb2..5bb4b1b73 100644 --- a/mod/item.php +++ b/mod/item.php @@ -429,10 +429,11 @@ function item_post(&$a) { } } - $r = q("UPDATE `item` SET `parent` = %d, `parent-uri` = '%s', `changed` = '%s', `last-child` = 1, `visible` = 1 + $r = q("UPDATE `item` SET `parent` = %d, `parent-uri` = '%s', `plink` = '%s', `changed` = '%s', `last-child` = 1, `visible` = 1 WHERE `id` = %d LIMIT 1", intval($parent), dbesc(($parent == $post_id) ? $uri : $parent_item['uri']), + dbesc($a->get_baseurl() . '/display/' . $user['nickname'] . '/' . $post_id), dbesc(datetime_convert()), intval($post_id) ); |