Feature: Support filter by tags and user for Pins

This commit is contained in:
winkidney
2019-02-21 19:03:55 +08:00
parent e120af94cf
commit e1720921fb
2 changed files with 6 additions and 5 deletions

View File

@@ -118,7 +118,7 @@ $(window).load(function() {
// Fetch our pins from the api using our current offset
var apiUrl = API_BASE + 'pins/?format=json&ordering=-id&limit=50&offset='+String(offset);
if (tagFilter) apiUrl = apiUrl + '&tag=' + tagFilter;
if (tagFilter) apiUrl = apiUrl + '&tags__name=' + tagFilter;
if (userFilter) apiUrl = apiUrl + '&submitter__username=' + userFilter;
$.get(apiUrl, function(pins_page) {
// Set which items are editable by the current user