Merge pull request #5761 from annando/endless
The endless saga of the fight against notices continues
This commit is contained in:
commit
79d36b932b
|
@ -25,7 +25,7 @@ function fetch_init(App $a)
|
||||||
|
|
||||||
// Fetch the item
|
// Fetch the item
|
||||||
$fields = ['uid', 'title', 'body', 'guid', 'contact-id', 'private', 'created', 'app', 'location', 'coord', 'network',
|
$fields = ['uid', 'title', 'body', 'guid', 'contact-id', 'private', 'created', 'app', 'location', 'coord', 'network',
|
||||||
'event-id', 'resource-id', 'author-link', 'owner-link', 'attach'];
|
'event-id', 'resource-id', 'author-link', 'author-avatar', 'author-name', 'plink', 'owner-link', 'attach'];
|
||||||
$condition = ['wall' => true, 'private' => false, 'guid' => $guid, 'network' => [Protocol::DFRN, Protocol::DIASPORA]];
|
$condition = ['wall' => true, 'private' => false, 'guid' => $guid, 'network' => [Protocol::DFRN, Protocol::DIASPORA]];
|
||||||
$item = Item::selectFirst($fields, $condition);
|
$item = Item::selectFirst($fields, $condition);
|
||||||
if (!DBA::isResult($item)) {
|
if (!DBA::isResult($item)) {
|
||||||
|
|
|
@ -3496,7 +3496,7 @@ class Diaspora
|
||||||
|
|
||||||
$myaddr = self::myHandle($owner);
|
$myaddr = self::myHandle($owner);
|
||||||
|
|
||||||
$public = (($item["private"]) ? "false" : "true");
|
$public = ($item["private"] ? "false" : "true");
|
||||||
|
|
||||||
$created = DateTimeFormat::utc($item["created"], DateTimeFormat::ATOM);
|
$created = DateTimeFormat::utc($item["created"], DateTimeFormat::ATOM);
|
||||||
|
|
||||||
|
|
|
@ -486,21 +486,23 @@ class ParseUrl
|
||||||
|
|
||||||
$complete = $schemearr["scheme"]."://".$schemearr["host"];
|
$complete = $schemearr["scheme"]."://".$schemearr["host"];
|
||||||
|
|
||||||
if (@$schemearr["port"] != "") {
|
if (!empty($schemearr["port"])) {
|
||||||
$complete .= ":".$schemearr["port"];
|
$complete .= ":".$schemearr["port"];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strpos($urlarr["path"], "/") !== 0) {
|
if (!empty($urlarr["path"])) {
|
||||||
$complete .= "/";
|
if (strpos($urlarr["path"], "/") !== 0) {
|
||||||
|
$complete .= "/";
|
||||||
|
}
|
||||||
|
|
||||||
|
$complete .= $urlarr["path"];
|
||||||
}
|
}
|
||||||
|
|
||||||
$complete .= $urlarr["path"];
|
if (!empty($urlarr["query"])) {
|
||||||
|
|
||||||
if (@$urlarr["query"] != "") {
|
|
||||||
$complete .= "?".$urlarr["query"];
|
$complete .= "?".$urlarr["query"];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (@$urlarr["fragment"] != "") {
|
if (!empty($urlarr["fragment"])) {
|
||||||
$complete .= "#".$urlarr["fragment"];
|
$complete .= "#".$urlarr["fragment"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue