From 73d72ce21e853e031fb2d8744d517dd2b3d3f7f3 Mon Sep 17 00:00:00 2001 From: Corban-Lee Jones Date: Wed, 18 Sep 2024 22:31:16 +0100 Subject: [PATCH] fix incorrect savedguilds as an admin results for all users are returned when acting as an administrator, this is fine, but client-side filtering needs to be implemented, so these results don't muddy the UI --- apps/static/js/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/static/js/api.js b/apps/static/js/api.js index e7e9a33..3b8db52 100644 --- a/apps/static/js/api.js +++ b/apps/static/js/api.js @@ -34,8 +34,8 @@ function makeQuerystring(filters, sort) { // Saved Guilds -async function getSavedGuilds() { - return await ajaxRequest("/api/saved-guilds/", "GET"); +async function getSavedGuilds(userId) { + return await ajaxRequest(`/api/saved-guilds/?added_by=${userId}`, "GET"); } async function getSavedGuild(id) {