mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-05 22:36:05 +02:00
Fix game log VIP video play filter
This commit is contained in:
@@ -6091,6 +6091,14 @@ speechSynthesis.getVoices();
|
|||||||
|
|
||||||
$app.methods.setNowPlaying = function (ctx) {
|
$app.methods.setNowPlaying = function (ctx) {
|
||||||
if (this.nowPlaying.url !== ctx.videoUrl) {
|
if (this.nowPlaying.url !== ctx.videoUrl) {
|
||||||
|
if (!ctx.userId && ctx.displayName) {
|
||||||
|
for (var ref of API.cachedUsers.values()) {
|
||||||
|
if (ref.displayName === ctx.displayName) {
|
||||||
|
ctx.userId = ref.id;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
this.queueGameLogNoty(ctx);
|
this.queueGameLogNoty(ctx);
|
||||||
this.addGameLog(ctx);
|
this.addGameLog(ctx);
|
||||||
database.addGamelogVideoPlayToDatabase(ctx);
|
database.addGamelogVideoPlayToDatabase(ctx);
|
||||||
|
|||||||
@@ -1648,12 +1648,9 @@ class Database {
|
|||||||
if (vipList.length > 0) {
|
if (vipList.length > 0) {
|
||||||
vipQuery = 'AND user_id IN (';
|
vipQuery = 'AND user_id IN (';
|
||||||
vipList.forEach((vip, i) => {
|
vipList.forEach((vip, i) => {
|
||||||
vipQuery += `'${vip.replaceAll("'", "''")}'`;
|
vipQuery += `'${vip.replaceAll("'", "''")}', `;
|
||||||
if (i < vipList.length - 1) {
|
|
||||||
vipQuery += ', ';
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
vipQuery += ')';
|
vipQuery += "'')";
|
||||||
}
|
}
|
||||||
var location = true;
|
var location = true;
|
||||||
var onplayerjoined = true;
|
var onplayerjoined = true;
|
||||||
@@ -1798,7 +1795,7 @@ class Database {
|
|||||||
userId: dbRow[7]
|
userId: dbRow[7]
|
||||||
};
|
};
|
||||||
gamelogDatabase.unshift(row);
|
gamelogDatabase.unshift(row);
|
||||||
}, `SELECT * FROM gamelog_video_play WHERE video_url LIKE '%${search}%' OR video_name LIKE '%${search}%' OR display_name LIKE '%${search}%' ORDER BY id DESC LIMIT ${Database.maxTableSize}`);
|
}, `SELECT * FROM gamelog_video_play WHERE (video_url LIKE '%${search}%' OR video_name LIKE '%${search}%' OR display_name LIKE '%${search}%') ${vipQuery} ORDER BY id DESC LIMIT ${Database.maxTableSize}`);
|
||||||
}
|
}
|
||||||
if (resourceload_string || resourceload_image) {
|
if (resourceload_string || resourceload_image) {
|
||||||
var checkString = '';
|
var checkString = '';
|
||||||
|
|||||||
Reference in New Issue
Block a user