Support for server independant Diaspora style links
This commit is contained in:
parent
8215b9da87
commit
cb8581b29a
2 changed files with 12 additions and 3 deletions
|
@ -1013,10 +1013,15 @@ class Diaspora {
|
|||
* @param array $item The item array
|
||||
*/
|
||||
private static function fetch_guid($item) {
|
||||
preg_replace_callback("=diaspora://.*?/([^\s\]]*)=ism",
|
||||
function ($match) use ($item) {
|
||||
return self::fetch_guid_sub($match, $item);
|
||||
}, $item["body"]);
|
||||
|
||||
preg_replace_callback("&\[url=/posts/([^\[\]]*)\](.*)\[\/url\]&Usi",
|
||||
function ($match) use ($item){
|
||||
return(self::fetch_guid_sub($match, $item));
|
||||
},$item["body"]);
|
||||
function ($match) use ($item) {
|
||||
return self::fetch_guid_sub($match, $item);
|
||||
}, $item["body"]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue