aboutsummaryrefslogtreecommitdiffstats
path: root/include/bb2diaspora.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-10-29 15:11:58 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-10-29 15:11:58 -0700
commita1e28bb669b1a9376b9c15bc32a3496ef0d906b9 (patch)
tree203a13b58831ac6c426b0f538e8b12b5498479f0 /include/bb2diaspora.php
parentdc4bd531a4aee036d28dfc233662ac71e4f6e7df (diff)
parentc5aedb14a962290140b1f2b7cc1d2b62296c7624 (diff)
downloadvolse-hubzilla-a1e28bb669b1a9376b9c15bc32a3496ef0d906b9.tar.gz
volse-hubzilla-a1e28bb669b1a9376b9c15bc32a3496ef0d906b9.tar.bz2
volse-hubzilla-a1e28bb669b1a9376b9c15bc32a3496ef0d906b9.zip
Merge https://github.com/redmatrix/hubzilla into pending_merge
Diffstat (limited to 'include/bb2diaspora.php')
-rw-r--r--include/bb2diaspora.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/bb2diaspora.php b/include/bb2diaspora.php
index d10ed57eb..7cba40672 100644
--- a/include/bb2diaspora.php
+++ b/include/bb2diaspora.php
@@ -309,9 +309,8 @@ function bb2diaspora_itembody($item, $force_update = false) {
$is_photo = (($item['obj_type'] == ACTIVITY_OBJ_PHOTO) ? true : false);
if($is_photo) {
$object = json_decode($item['object'],true);
- if($object['link'][2]) {
- $photo_bb = '[zrl=' . rawurldecode($object['id']) . ']' . '[zmg=' . $object['link'][2]['width'] . 'x' . $object['link'][2]['height'] . ']' . rawurldecode($object['link'][2]['href']) . '[/zmg]' . '[/zrl]';
- $item['body'] = (($item['body']) ? $photo_bb . $item['body'] : $photo_bb);
+ if($object['bbcode']) {
+ $item['body'] = (($item['body']) ? $object['bbcode'] . "\r\n" . $item['body'] : $object['bbcode']);
}
}