provide permalink for posts, include permalinks in feeds and imported from feeds
This commit is contained in:
parent
c5f5102396
commit
9f02057374
13 changed files with 35 additions and 3 deletions
|
@ -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)
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue