aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-01-22 14:48:22 -0800
committerfriendica <info@friendica.com>2014-01-22 14:48:22 -0800
commit927098ae1946d593de3dd04bd40e3925d57299d8 (patch)
tree6681742c1ec9eb007a335b28feebafdbc7cc2856 /include/conversation.php
parent39142002238b416a2d823245cf046ca9eee0bf94 (diff)
parent25f7a7fac975f9858b771f7bb57d4c06c5ab0daf (diff)
downloadvolse-hubzilla-927098ae1946d593de3dd04bd40e3925d57299d8.tar.gz
volse-hubzilla-927098ae1946d593de3dd04bd40e3925d57299d8.tar.bz2
volse-hubzilla-927098ae1946d593de3dd04bd40e3925d57299d8.zip
Merge pull request #280 from beardy-unixer/master
Give pages enough to construct a share button.
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 708348ddd..13f0d8970 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -1301,7 +1301,8 @@ function prepare_page($item) {
$naked = ((get_pconfig($item['uid'],'system','nakedpage')) ? 1 : 0);
$observer = $a->get_observer();
$zid = ($observer['xchan_addr']);
-
+ $preview = substr(urlencode($item['body']), 0, 100);
+ $link = z_root() . '/' . $a->cmd;
if(array_key_exists('webpage',$a->layout) && array_key_exists('authored',$a->layout['webpage'])) {
if($a->layout['webpage']['authored'] === 'none')
$naked = 1;
@@ -1313,7 +1314,9 @@ function prepare_page($item) {
'$zid' => $zid,
'$date' => (($naked) ? '' : datetime_convert('UTC',date_default_timezone_get(),$item['created'],'Y-m-d H:i')),
'$title' => smilies(bbcode($item['title'])),
- '$body' => prepare_body($item,true)
+ '$body' => prepare_body($item,true),
+ '$preview' => $preview,
+ '$link' => $link
));
}