Improvement for PR 3705: The detection has to be changed here as well

pull/3709/head
Michael 2017-09-16 17:22:22 +00:00
rodzic 7e193cfb7a
commit 0982a30c89
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -1013,7 +1013,8 @@ class Diaspora {
* @param array $item The item array
*/
private static function fetch_guid($item) {
preg_replace_callback("=diaspora://.*?/([^\s\]]*)=ism",
$expression = "=diaspora://.*?/post/([0-9A-Za-z\-_@.:]{15,254}[0-9A-Za-z])=ism";
preg_replace_callback($expression,
function ($match) use ($item) {
return self::fetch_guid_sub($match, $item);
}, $item["body"]);