notags calls

implement removeTags function
This commit is contained in:
Adam Magness
2018-11-08 10:14:37 -05:00
parent 991f259ecb
commit a0f65ca7a1
51 changed files with 274 additions and 232 deletions

View File

@@ -10,6 +10,7 @@ use Friendica\Core\System;
use Friendica\Core\Worker;
use Friendica\Database\DBA;
use Friendica\Model\Item;
use Friendica\Util\Strings;
use Friendica\Util\XML;
require_once 'include/items.php';
@@ -20,7 +21,7 @@ function tagger_content(App $a) {
return;
}
$term = notags(trim($_GET['term']));
$term = Strings::removeTags(trim($_GET['term']));
// no commas allowed
$term = str_replace([',',' '],['','_'],$term);
@@ -28,7 +29,7 @@ function tagger_content(App $a) {
return;
}
$item_id = (($a->argc > 1) ? notags(trim($a->argv[1])) : 0);
$item_id = (($a->argc > 1) ? Strings::removeTags(trim($a->argv[1])) : 0);
Logger::log('tagger: tag ' . $term . ' item ' . $item_id);