mirror of
https://github.com/friendica/friendica
synced 2025-04-25 20:30:11 +00:00
Removed notices in the frio theme (#5610)
* Removed notices in the frio theme * And fixed notices in the notifications * And some more in frio * Null is the default value * And some small notice in the probing removed * Added note * Clarified note * And a removed notice in OStatus
This commit is contained in:
parent
576aea124c
commit
1283b99c6f
6 changed files with 32 additions and 23 deletions
|
@ -1351,13 +1351,15 @@ class OStatus
|
|||
|
||||
switch ($siteinfo["type"]) {
|
||||
case 'photo':
|
||||
$imgdata = Image::getInfoFromURL($siteinfo["image"]);
|
||||
if ($imgdata) {
|
||||
$attributes = ["rel" => "enclosure",
|
||||
"href" => $siteinfo["image"],
|
||||
"type" => $imgdata["mime"],
|
||||
"length" => intval($imgdata["size"])];
|
||||
XML::addElement($doc, $root, "link", "", $attributes);
|
||||
if (!empty($siteinfo["image"])) {
|
||||
$imgdata = Image::getInfoFromURL($siteinfo["image"]);
|
||||
if ($imgdata) {
|
||||
$attributes = ["rel" => "enclosure",
|
||||
"href" => $siteinfo["image"],
|
||||
"type" => $imgdata["mime"],
|
||||
"length" => intval($imgdata["size"])];
|
||||
XML::addElement($doc, $root, "link", "", $attributes);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'video':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue