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
|
@ -272,6 +272,7 @@ function display_content(&$a) {
|
|||
'$owner_url' => $owner_url,
|
||||
'$owner_photo' => $owner_photo,
|
||||
'$owner_name' => $owner_name,
|
||||
'$plink' => get_plink($item),
|
||||
'$drop' => $drop,
|
||||
'$vote' => $likebuttons,
|
||||
'$like' => $like,
|
||||
|
|
|
@ -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)
|
||||
);
|
||||
|
|
|
@ -425,6 +425,7 @@ function network_content(&$a, $update = 0) {
|
|||
'$owner_url' => $owner_url,
|
||||
'$owner_photo' => $owner_photo,
|
||||
'$owner_name' => $owner_name,
|
||||
'$plink' => get_plink($item),
|
||||
'$drop' => $drop,
|
||||
'$vote' => $likebuttons,
|
||||
'$like' => $like,
|
||||
|
|
|
@ -371,6 +371,7 @@ function profile_content(&$a, $update = 0) {
|
|||
'$lock' => $lock,
|
||||
'$location' => $location,
|
||||
'$indent' => $indent,
|
||||
'$plink' => get_plink($item),
|
||||
'$drop' => $drop,
|
||||
'$like' => $like,
|
||||
'$vote' => $likebuttons,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue