mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 10:03:41 +00:00
pumpio: switch for a reshare added to let it look differently..
This commit is contained in:
parent
9ad282fe93
commit
29b149b8b5
1 changed files with 11 additions and 4 deletions
|
@ -1130,10 +1130,17 @@ function pumpio_dopost(&$a, $client, $uid, $self, $post, $own_id, $threadcomplet
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($post->verb == "share") {
|
if ($post->verb == "share") {
|
||||||
$postarray['body'] = "[share author='".$post->object->author->displayName.
|
if (!intval(get_config('system','wall-to-wall_share'))) {
|
||||||
"' profile='".$post->object->author->url.
|
$postarray['body'] = "[share author='".$post->object->author->displayName.
|
||||||
"' avatar='".$post->object->author->image->url.
|
"' profile='".$post->object->author->url.
|
||||||
"' link='".$post->links->self->href."']".$postarray['body']."[/share]";
|
"' 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']) == "")
|
if (trim($postarray['body']) == "")
|
||||||
|
|
Loading…
Reference in a new issue