forked from friendica/friendica-addons
fromgplus: Option for enabling and disabling the new "share" element in postings.
This commit is contained in:
parent
fcc9b06bdb
commit
804bf0d980
|
@ -327,22 +327,27 @@ function fromgplus_fetch($a, $uid) {
|
||||||
|
|
||||||
case "activity":
|
case "activity":
|
||||||
$post = fromgplus_html2bbcode($item->annotation)."\n";
|
$post = fromgplus_html2bbcode($item->annotation)."\n";
|
||||||
$post .= fromgplus_html2bbcode("♲");
|
|
||||||
//$post .= html2bbcode("♻");
|
|
||||||
//$post .= fromgplus_html2bbcode("◌");
|
|
||||||
$post .= " [url=".$item->object->actor->url."]".$item->object->actor->displayName."[/url] \n";
|
|
||||||
|
|
||||||
/*$post .= "[share author='".$item->object->actor->displayName.
|
if (intval(get_config('system','new_share'))) {
|
||||||
"' profile='".$item->object->actor->url.
|
$post .= "[share author='".$item->object->actor->displayName.
|
||||||
"' avatar='".$item->object->actor->image->url.
|
"' profile='".$item->object->actor->url.
|
||||||
"' link='".$item->object->url."']\n";*/
|
"' avatar='".$item->object->actor->image->url.
|
||||||
|
"' link='".$item->object->url."']";
|
||||||
|
|
||||||
$post .= fromgplus_html2bbcode($item->object->content);
|
$post .= fromgplus_html2bbcode($item->object->content);
|
||||||
|
|
||||||
if (is_array($item->object->attachments))
|
if (is_array($item->object->attachments))
|
||||||
$post .= "\n".trim(fromgplus_handleattachments($item));
|
$post .= "\n".trim(fromgplus_handleattachments($item));
|
||||||
|
|
||||||
//$post .= "[/share]";
|
$post .= "[/share]";
|
||||||
|
} else {
|
||||||
|
$post .= fromgplus_html2bbcode("♲");
|
||||||
|
$post .= " [url=".$item->object->actor->url."]".$item->object->actor->displayName."[/url] \n";
|
||||||
|
$post .= fromgplus_html2bbcode($item->object->content);
|
||||||
|
|
||||||
|
if (is_array($item->object->attachments))
|
||||||
|
$post .= "\n".trim(fromgplus_handleattachments($item));
|
||||||
|
}
|
||||||
|
|
||||||
if (isset($item->address))
|
if (isset($item->address))
|
||||||
$location = $item->address;
|
$location = $item->address;
|
||||||
|
|
Loading…
Reference in a new issue