mirror of
https://github.com/friendica/friendica
synced 2025-04-29 13:44:23 +02:00
Merge branch '2019.01-rc' into bug/6334-escape-get-app
This commit is contained in:
commit
e447375cdd
27 changed files with 136 additions and 72 deletions
|
@ -1326,15 +1326,8 @@ class Diaspora
|
|||
$x = false;
|
||||
}
|
||||
|
||||
// This will work for older Diaspora and Friendica servers
|
||||
if (!$x) {
|
||||
$source_url = $server."/p/".urlencode($guid).".xml";
|
||||
Logger::log("Fetch post from ".$source_url, Logger::DEBUG);
|
||||
|
||||
$x = Network::fetchUrl($source_url);
|
||||
if (!$x) {
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
$source_xml = XML::parseString($x);
|
||||
|
|
|
@ -1228,7 +1228,7 @@ class OStatus
|
|||
{
|
||||
$siteinfo = BBCode::getAttachedData($body);
|
||||
|
||||
if (($siteinfo["type"] == "photo")) {
|
||||
if (($siteinfo["type"] == "photo") && (!empty($siteinfo["preview"]) || !empty($siteinfo["image"]))) {
|
||||
if (isset($siteinfo["preview"])) {
|
||||
$preview = $siteinfo["preview"];
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue