mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-10-04 15:19:43 +00:00
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:
parent
2949e83e01
commit
24fa301182
4 changed files with 96 additions and 47 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue