Reshares had been detected falsely so that were rejected by Diaspora

2022.09-rc
Michael 2018-05-03 13:03:41 +00:00
rodzic aba93df94f
commit 53b7028d35
2 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -965,7 +965,7 @@ class BBCode extends BaseObject
}
if (stripos(normalise_link($link), 'http://twitter.com/') === 0) {
$text .= '<br /><a href="' . $link . '" title="' . $link . '">' . $link . '</a>';
$text .= '<br /><a href="' . $link . '">' . $link . '</a>';
} else {
$text .= $headline . '<blockquote>' . trim($share[3]) . "</blockquote><br />";

Wyświetl plik

@ -3571,8 +3571,12 @@ class Diaspora
$ret["root_guid"] = $guid;
return $ret;
}
} elseif (($guid == "") && $complete) {
return false;
}
$ret["root_guid"] = $guid;
$profile = "";
preg_match("/profile='(.*?)'/ism", $attributes, $matches);
if ($matches[1] != "") {
@ -3593,10 +3597,6 @@ class Diaspora
}
}
if (!empty($guid)) {
$ret["root_guid"] = $guid;
}
if (empty($ret) && !$complete) {
return true;
}