diff options
author | friendica <info@friendica.com> | 2011-12-06 15:24:01 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2011-12-06 15:24:01 -0800 |
commit | 0c24784f5e92e0c8269f255e962312574871f2f0 (patch) | |
tree | 2e47728fb7a87a4caeb1ee325db40d6cfb360116 /include | |
parent | f6f151433c7ecdbfc1bf443880eb63841c61eb7e (diff) | |
download | volse-hubzilla-0c24784f5e92e0c8269f255e962312574871f2f0.tar.gz volse-hubzilla-0c24784f5e92e0c8269f255e962312574871f2f0.tar.bz2 volse-hubzilla-0c24784f5e92e0c8269f255e962312574871f2f0.zip |
include diaspora mentions in personal (requires adding a Diaspora profile url because they don't use ours)
Diffstat (limited to 'include')
-rw-r--r-- | include/diaspora.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/diaspora.php b/include/diaspora.php index a8fd43024..4f0df1944 100644 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -621,7 +621,16 @@ function diaspora_post($importer,$xml) { } } } - + + $cnt = preg_match_all('/@\[url=(.*?)\[\/url\]/ism',$body,$matches,PREG_SET_ORDER); + if($cnt) { + foreach($matches as $mtch) { + if(strlen($str_tags)) + $str_tags .= ','; + $str_tags .= '@[url=' . $mtch[1] . '[/url]'; + } + } + $datarray['uid'] = $importer['uid']; $datarray['contact-id'] = $contact['id']; $datarray['wall'] = 0; |