catche edge case of tag "@abcdef +1", which tags the first entry in your abook, regardless of abcdef. This holds true for other similar patterns as well.

This commit is contained in:
friendica
2015-03-24 02:36:45 -07:00
parent 37f0bd6c9d
commit c024668cf2
3 changed files with 19 additions and 10 deletions
+3 -3
View File
@@ -843,7 +843,7 @@ function diaspora_post($importer,$xml,$msg) {
// Look for tags and linkify them
$results = linkify_tags(get_app(), $body, $importer['channel_id']);
$results = linkify_tags(get_app(), $body, $importer['channel_id'], true);
$datarray['term'] = array();
@@ -1062,7 +1062,7 @@ function diaspora_reshare($importer,$xml,$msg) {
$datarray = array();
// Look for tags and linkify them
$results = linkify_tags(get_app(), $body, $importer['channel_id']);
$results = linkify_tags(get_app(), $body, $importer['channel_id'], true);
$datarray['term'] = array();
@@ -1397,7 +1397,7 @@ function diaspora_comment($importer,$xml,$msg) {
$datarray = array();
// Look for tags and linkify them
$results = linkify_tags(get_app(), $body, $importer['channel_id']);
$results = linkify_tags(get_app(), $body, $importer['channel_id'], true);
$datarray['term'] = array();