aboutsummaryrefslogtreecommitdiffstats
path: root/include/diaspora.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/diaspora.php')
-rwxr-xr-xinclude/diaspora.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/diaspora.php b/include/diaspora.php
index afb318b05..30e79c5c5 100755
--- a/include/diaspora.php
+++ b/include/diaspora.php
@@ -867,11 +867,13 @@ function diaspora_post($importer,$xml,$msg) {
$cnt = preg_match_all('/@\[zrl=(.*?)\](.*?)\[\/zrl\]/ism',$body,$matches,PREG_SET_ORDER);
if($cnt) {
foreach($matches as $mtch) {
+ // don't include plustags in the term
+ $term = ((substr($mtch[2],-1,1) === '+') ? substr($mtch[2],0,-1) : $mtch[2]);
$datarray['term'][] = array(
'uid' => $importer['channel_id'],
'type' => TERM_MENTION,
'otype' => TERM_OBJ_POST,
- 'term' => $mtch[2],
+ 'term' => $term,
'url' => $mtch[1]
);
}