Skip to content

Show users' profile pins in-game #773

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public class GameUserResponse : IDataConvertableFrom<GameUserResponse, GameUser>
[XmlElement("lbp2PurchasedSlots")] public int PurchasedSlotsLBP2 { get; set; }
[XmlElement("lbp3PurchasedSlots")] public int PurchasedSlotsLBP3 { get; set; }
[XmlElement("rootPlaylist")] public string? RootPlaylist { get; set; }
[XmlElement("pins")] public List<long> ProfilePins { get; set; } = [];

/// <summary>
/// The levels the user has favourited, only used by LBP PSP
Expand Down Expand Up @@ -80,6 +81,7 @@ public class GameUserResponse : IDataConvertableFrom<GameUserResponse, GameUser>
PhotosByMeCount = old.IsManaged ? dataContext.Database.GetTotalPhotosByUser(old) : 0,
PhotosWithMeCount = old.IsManaged ? dataContext.Database.GetTotalPhotosWithUser(old) : 0,
RootPlaylist = old.RootPlaylist?.PlaylistId.ToString(),
ProfilePins = old.IsManaged ? dataContext.Database.GetProfilePinsByUser(old, dataContext.Game, 0, 3).Items.Select(p => p.PinId).ToList() : [],

EntitledSlots = UgcLimits.MaximumLevels,
EntitledSlotsLBP2 = UgcLimits.MaximumLevels,
Expand Down
Loading