]> git.mxchange.org Git - friendica.git/blobdiff - include/tags.php
Better handling of the network field in the item table.
[friendica.git] / include / tags.php
index c4aba400f3c799e0471b9c077e3d6d127dfa1309..e5bc29cd4f5db6bb13662e4c1a6f35db8dde2935 100644 (file)
@@ -83,7 +83,7 @@ function create_tags_from_item($itemid) {
                        if(ctype_digit(substr(trim($tag),1)))
                                continue;
                        // try to ignore html hex escapes, e.g. #x2317
-                       if((substr(trim($tag),1,1) == 'x' || substr(trim($tag),1,1) == 'X') && ctype_digit(substr(trim($tag),2,1)))
+                       if((substr(trim($tag),1,1) == 'x' || substr(trim($tag),1,1) == 'X') && ctype_digit(substr(trim($tag),2)))
                                continue;
                        $type = TERM_HASHTAG;
                        $term = substr($tag, 1);
@@ -92,7 +92,7 @@ function create_tags_from_item($itemid) {
                        $term = substr($tag, 1);
                } else { // This shouldn't happen
                        $type = TERM_HASHTAG;
-                       $term = $tag."-oh";
+                       $term = $tag;
                }
 
                $r = q("INSERT INTO `term` (`uid`, `oid`, `otype`, `type`, `term`, `url`) VALUES (%d, %d, %d, %d, '%s', '%s')",