X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=pumpio%2Fpumpio.php;h=f7e01dc24f636a0ca6b75e37f7f0e7e8f46109e7;hb=29b149b8b587ddd5e0d2974dc270a5c139b6dc8a;hp=24532b416dd2392578f26ee74b77115b08af6468;hpb=9ad282fe934b4a3a5075b97a7affe28fa789116a;p=friendica-addons.git diff --git a/pumpio/pumpio.php b/pumpio/pumpio.php index 24532b41..f7e01dc2 100755 --- a/pumpio/pumpio.php +++ b/pumpio/pumpio.php @@ -1130,10 +1130,17 @@ function pumpio_dopost(&$a, $client, $uid, $self, $post, $own_id, $threadcomplet } if ($post->verb == "share") { - $postarray['body'] = "[share author='".$post->object->author->displayName. - "' profile='".$post->object->author->url. - "' avatar='".$post->object->author->image->url. - "' link='".$post->links->self->href."']".$postarray['body']."[/share]"; + if (!intval(get_config('system','wall-to-wall_share'))) { + $postarray['body'] = "[share author='".$post->object->author->displayName. + "' profile='".$post->object->author->url. + "' avatar='".$post->object->author->image->url. + "' link='".$post->links->self->href."']".$postarray['body']."[/share]"; + } else { + // Let shares look like wall-to-wall posts + $postarray['author-name'] = $post->object->author->displayName; + $postarray['author-link'] = $post->object->author->url; + $postarray['author-avatar'] = $post->object->author->image->url; + } } if (trim($postarray['body']) == "")