mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-12-22 20:30:15 +00:00
[fromgplus] Fix potentially missing attachments property in activity
This commit is contained in:
parent
b040bee1d0
commit
375f625e83
1 changed files with 2 additions and 1 deletions
|
@ -495,8 +495,9 @@ function fromgplus_fetch($a, $uid) {
|
|||
case "note":
|
||||
$post = fromgplus_html2bbcode($item->object->content);
|
||||
|
||||
if (is_array($item->object->attachments))
|
||||
if (!empty($item->object->attachments)) {
|
||||
$post .= fromgplus_handleattachments($a, $uid, $item, $item->object->content, false);
|
||||
}
|
||||
|
||||
$coord = "";
|
||||
$location = "";
|
||||
|
|
Loading…
Reference in a new issue