mirror of
https://github.com/friendica/friendica
synced 2024-12-27 10:02:19 +00:00
21 lines
426 B
PHP
21 lines
426 B
PHP
<?php
|
|
|
|
function filerm_content(&$a) {
|
|
|
|
if(! local_user()) {
|
|
killme();
|
|
}
|
|
|
|
$term = notags(trim($_GET['term']));
|
|
$item_id = (($a->argc > 1) ? notags(trim($a->argv[1])) : 0);
|
|
|
|
logger('filerm: tag ' . $term . ' item ' . $item_id);
|
|
|
|
if($item_id && strlen($term))
|
|
file_tag_unsave_file(local_user(),$item_id,$term);
|
|
|
|
if(x($_SESSION,'return_url'))
|
|
goaway($a->get_baseurl() . '/' . $_SESSION['return_url']);
|
|
|
|
killme();
|
|
}
|