Don't create activities for story levels

Also no longer shows you activities from incompatible levels (someone plays an LBP3 level but you won't be shown it from LBP2)

Also gets rid of versus scores
This commit is contained in:
Slendy 2023-08-31 18:20:53 -05:00
commit 24fa301182
No known key found for this signature in database
GPG key ID: 7288D68361B91428
4 changed files with 96 additions and 47 deletions

View file

@ -43,6 +43,10 @@ public class ActivityController : ControllerBase
bool excludeMyPlaylists = true
)
{
dtoQuery = token.GameVersion == GameVersion.LittleBigPlanetVita
? dtoQuery.Where(dto => dto.TargetSlotGameVersion == null || dto.TargetSlotGameVersion == token.GameVersion)
: dtoQuery.Where(dto => dto.TargetSlotGameVersion == null || dto.TargetSlotGameVersion <= token.GameVersion);
Expression<Func<ActivityDto, bool>> predicate = PredicateExtensions.False<ActivityDto>();
List<int> favouriteUsers = await this.database.HeartedProfiles.Where(hp => hp.UserId == token.UserId)