Merge pull request #3709 from annando/diaspora-link2
Improvement for PR 3705: The detection has to be changed here as well
This commit is contained in:
commit
58adb42009
1 changed files with 2 additions and 1 deletions
|
@ -1013,7 +1013,8 @@ class Diaspora {
|
||||||
* @param array $item The item array
|
* @param array $item The item array
|
||||||
*/
|
*/
|
||||||
private static function fetch_guid($item) {
|
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) {
|
function ($match) use ($item) {
|
||||||
return self::fetch_guid_sub($match, $item);
|
return self::fetch_guid_sub($match, $item);
|
||||||
}, $item["body"]);
|
}, $item["body"]);
|
||||||
|
|
Loading…
Reference in a new issue