4 use Friendica\Core\System;
6 function filerm_content(App $a) {
12 $term = unxmlify(trim($_GET['term']));
13 $cat = unxmlify(trim($_GET['cat']));
15 $category = (($cat) ? true : false);
20 $item_id = (($a->argc > 1) ? intval($a->argv[1]) : 0);
22 logger('filerm: tag ' . $term . ' item ' . $item_id);
24 if ($item_id && strlen($term)) {
25 file_tag_unsave_file(local_user(),$item_id,$term, $category);
28 if (x($_SESSION,'return_url')) {
29 goaway(System::baseUrl() . '/' . $_SESSION['return_url']);