diff --git a/html/src/app.js b/html/src/app.js index 5313ebf9..94412ecd 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -1003,6 +1003,7 @@ speechSynthesis.getVoices(); allowAvatarCopying: json.allowAvatarCopying, userIcon: json.userIcon, fallbackAvatar: json.fallbackAvatar, + profilePicOverride: json.profilePicOverride, isFriend: false, location: $app.lastLocation.location }); diff --git a/html/src/repository/database.js b/html/src/repository/database.js index da9a1eef..2d1b11c8 100644 --- a/html/src/repository/database.js +++ b/html/src/repository/database.js @@ -787,7 +787,7 @@ class Database { userId }; } - }, `SELECT COUNT(*) FROM gamelog_join_leave WHERE user_id = '${userId}' OR display_name = '${displayName}'`); + }, `SELECT COUNT(*) FROM gamelog_join_leave WHERE (type = 'OnPlayerJoined') AND (user_id = '${userId}' OR display_name = '${displayName}')`); return ref; } }