fixing random not working for user fav view
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user