]> git.plutz.net Git - serve0/blobdiff - actions/multitag.sh
cleanup for simplified backlinking
[serve0] / actions / multitag.sh
index 3c9848e8cf938b8365560f24313fdb274f48151a..36f396680af3435393f1180b21d5066ed5c8d206 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/zsh
-# Copyright 2014 - 2016 Paul Hänsch
+# Copyright 2014 - 2017 Paul Hänsch
 #
 # This file is part of Serve0
 #
 # You should have received a copy of the GNU Affero General Public License
 # along with Serve0  If not, see <http://www.gnu.org/licenses/>.
 
-filter="${_POST[f]}"
-search="${_POST[s]}"
-order=$(validate "${_POST[o]}" 'Name|Date|Length' Name)
-page=$(validate "${_POST[pn]}" '[0-9]+' 1)
+backlink="${_POST[page]}"
 
 addtag(){
   meta="$1"
@@ -64,5 +61,4 @@ done
 rm "${_DATA}"/cache/\?* 2>/dev/null
 [ -n "${_POST[tags]}" ] && rm "${_DATA}"/cache/taglist_set "${_DATA}"/cache/taglist_filter 2>/dev/null
 
-#redirect "?o=$order&s=$search&f=$filter&pn=$page"
-redirect "${_POST[page]}"
+redirect "$backlink"