1
0
forked from w0bm/f0bm

fixing random not working for user fav view

This commit is contained in:
x
2026-01-23 20:28:03 +01:00
parent f5e386593d
commit e9c377dc87
2 changed files with 18 additions and 4 deletions

View File

@@ -358,7 +358,12 @@ window.requestAnimFrame = (function () {
if (wTagMatch) params.append('tag', decodeURIComponent(wTagMatch[1]));
const wUserMatch = window.location.href.match(/\/user\/([^/]+)/);
if (wUserMatch) params.append('user', decodeURIComponent(wUserMatch[1]));
if (wUserMatch) {
params.append('user', decodeURIComponent(wUserMatch[1]));
if (window.location.href.includes('/favs/')) {
params.append('fav', 'true');
}
}
if ([...params].length > 0) {
randomUrl += '?' + params.toString();