mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-28 13:53:15 +00:00
Some more notices in addons
This commit is contained in:
parent
b8d0930665
commit
74353e7f2d
3 changed files with 7 additions and 3 deletions
|
@ -341,10 +341,13 @@ function fromgplus_handleattachments($a, $uid, $item, $displaytext, $shared) {
|
|||
if ($images["full"] != "")
|
||||
$pagedata["images"][0]["src"] = $images["full"];
|
||||
|
||||
if (!empty($attachment->content)) {
|
||||
$quote = trim(fromgplus_html2bbcode($attachment->content));
|
||||
}
|
||||
|
||||
if ($quote != "")
|
||||
if (!empty($quote)) {
|
||||
$pagedata["text"] = $quote;
|
||||
}
|
||||
|
||||
// Add Keywords to page link
|
||||
$data = parseurl_getsiteinfo_cached($pagedata["url"], true);
|
||||
|
|
|
@ -778,6 +778,7 @@ function pumpio_fetchtimeline(App $a, $uid)
|
|||
$success = $client->CallAPI($url, 'GET', [], ['FailOnAccessError'=>true], $user);
|
||||
} else {
|
||||
$success = false;
|
||||
$user = [];
|
||||
}
|
||||
|
||||
if (!$success) {
|
||||
|
|
|
@ -443,7 +443,7 @@ function tumblr_send(App $a, array &$b) {
|
|||
"<p>".$params['caption']."</p>";
|
||||
}
|
||||
|
||||
if (empty($params['caption'])) {
|
||||
if (empty($params['caption']) && !empty($siteinfo["description"])) {
|
||||
$params['caption'] = BBCode::convert("[quote]" . $siteinfo["description"] . "[/quote]", false, 4);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue