Commit graph

96 commits

Author SHA1 Message Date
Josh
b5877bc10c
Remove duplicate scores (#622)
* Remove duplicate scores

* Optimize score migration
2023-01-10 17:36:43 -06:00
Dth455
993d14d90a
Make chat filter logging configurable (#618)
* Make chat filter logging configurable

Disables chat logging by default, but allows for it to be re-enabled if need be.

* Update ProjectLighthouse.Servers.GameServer/Controllers/MessageController.cs

Co-authored-by: Josh <josh@slendy.pw>

* Update ServerConfiguration.cs

Co-authored-by: Josh <josh@slendy.pw>
2023-01-03 20:08:55 -06:00
Slendy
400d45389c
Fix initial account setup email 2022-12-26 16:21:16 -06:00
Josh
19ea44e0e2
Rework login and registration systems (#600)
* Initial work for verifying login ticket signatures

* Add candidate psn public key

* Add candidate psn public key and fix nuget packages

* Finalize npticket changes

* Add support for ticket version 3.0

* Rework login system to link platform accounts instead of using ip addresses

* Make linked accounts green instead of blue

* Fix api building

* Fix unit tests

* Actually fix unit tests

* Set unit test user's linked platform

* Why was this the wrong default value?

* Fix username change code

* Make TicketHash hash the entire ticket instead of just the serial

* Send password setup email when user sets their email for the first time

* Changes from self review
2022-12-26 01:03:14 -08:00
Josh
6024d44508
Fix bugs and bump dependencies (#590)
Fixes a bug with yourReview where the slot type wouldn't be included
Fixes a bug with crossControllerPlanet where it would be included even if it was null or empty
2022-12-13 18:39:24 -06:00
Josh
d16132f67f
NET 7.0 support (#581)
* NET 7.0 support

* Bump Pomelo MySql to support EF7

* Its net7.0 time

* Trying to resolve dependencies by hand

* Fix .NET 7 warnings

* Bump InfluxDB version

* Fix bad null handling
2022-12-13 18:17:28 -06:00
Josh
3b93f6ca2f
Add Deflate compression for text/xml (#552)
* Add deflate compression support

* Fix compression when content type contains encoding

Co-authored-by: Dagg <daggintosh@outlook.com>
2022-11-29 14:50:25 -06:00
W0lf4llo
b896aee51a
Prevent other players scores from showing up as yours (#566)
* Fix ScoreController making scores of other players

* Split playerIds when looking for friends too

Co-authored-by: Josh <josh@slendy.pw>
2022-11-27 17:46:50 -06:00
W0lf4llo
bc2f385384
Total level count shows compatible levels instead of levels uploaded all throughout lighthouse. (#563)
* StatisticsController test & Renammed hearted cat

* Total Level Counts show all compatible levels.

* Formatted document

* Update ProjectLighthouse.Servers.GameServer/Controllers/StatisticsController.cs

Change 1

Co-authored-by: Josh <josh@slendy.pw>

* Update ProjectLighthouse.Servers.GameServer/Controllers/StatisticsController.cs

Change 2

Co-authored-by: Josh <josh@slendy.pw>

* Fix compilation error

Co-authored-by: Josh <josh@slendy.pw>
2022-11-20 23:28:38 -06:00
Dagg
ca317d3afc
Add support for Cross Controller Planets (#562)
* Add support for Cross Controller Planets

* Clean
2022-11-17 22:54:46 -06:00
Slendy
75de1d0faa
Add workaround for weird score bug 2022-11-13 17:28:04 -06:00
Slendy
5e82827fc0
Fix game server photo deletion bug
Fix bug where users couldn't delete photos with empty subjects
2022-11-12 11:21:31 -06:00
Slendy
e5cafb1e02
Add missing null checks to CollectionController 2022-11-10 22:20:28 -06:00
Slendy
f1a6eb48b1
Add Authorize tag to ScoreController and add more verbose logging 2022-11-10 22:11:03 -06:00
Josh
b3a00da554
Refactor deserialization and authentication (#550)
* Refactor deserialization and more

* Refactor authentication flow

* Fix unit tests

* Make deserialization better
2022-11-10 21:14:16 -06:00
Slendy
b0d780b91e
Fix score uploading exploit 2022-11-05 22:37:16 -05:00
Slendy
f46bd4fc87
Fix playlist descriptions and pirate bug 2022-09-27 21:52:56 -05:00
Slendy
2217c20803
Fix favouritePlaylists logic 2022-09-24 21:34:05 -05:00
Slendy
a15ff2c886
Fix typo in unfavourite route 2022-09-24 21:28:05 -05:00
Slendy
d7fa63d31c
Fix hearting playlists 2022-09-24 19:43:22 -05:00
Slendy
af0e5bd424
Changes from self review 2022-09-24 19:24:38 -05:00
Josh
fbe203d84a
Merge branch 'LBPUnion:main' into playlists 2022-09-24 19:24:14 -05:00
Josh
ded7628085
Add unimplemented LBP3 login field (#495)
* Add unsupported LBP3 features

* Add GameApiExternal config url

* Add more exempt urls to digest check

* Make exemptPathList static
2022-09-24 18:19:19 -05:00
Josh
3ad211e5c8
Implement POST request rate limiting (#490)
* Initial work for rate limiting

* Refactor GameServerStartup and change default rate limit config

* Adjust config naming and add Enabled option to global and override rate limits

* Fix LBP3 republish bug

* Fix bugs in rate limiting and allow for multiple matched overrides

* Add this qualifier for private variable

* Changes from self review
2022-09-24 17:18:28 -05:00
Slendy
84e645942a
Make playlist serialization include hint_start 2022-09-23 22:03:25 -05:00
Slendy
4483819bd7
Implement hearting playlists 2022-09-23 00:03:54 -05:00
Slendy
1d4d143519
Merge remote-tracking branch 'lighthouse/main' into playlists
# Conflicts:
#	ProjectLighthouse/PlayerData/Profiles/User.cs
2022-09-22 23:24:01 -05:00
Slendy
2cf2e6622a
Prevent directory traversal attacks 2022-09-22 17:11:17 -05:00
Slendy
b26d96bacd
Make childId not nullable in SubmitScore 2022-09-20 17:09:35 -05:00
Slendy
a6c17b0e16
Fix leaderboards for non-adventure levels 2022-09-20 16:55:56 -05:00
Dagg
dfd1d9b748
LittleBigPlanet 3 Adventure Support (#477)
* Baseline LBP3 Adventure slot support
VERY unsafe and hacky to use as of now, this is just testing the waters.

* ADC file type checking

* Refactor & trimming
This might need to be adjusted if any feature is found to be missing

* isAdventure added to API

* Prototype Adventure icons for Website
I am not an artist, please make this more in line with the originals.

* Override border radius for LBP3 Adventures

* Cleaning

* Remove WriteLine and unused property

* Remove unused libraries

* Handle tracking and submitting of Adventure scores

* Check for null instead of 0
Non-adventure slots will report null, not 0

* Score for adventure slot instead of main slot

* Tweaks for PR

* Identify levels for photos by level resource
Verify this doesn't break anything.

* SlotCardPartial merge with main changes

* PR resolution 2

* probably not what was wanted
Use variables for style extension

* Internal slots already properly identified

* Return line breaks to end of Slot.cs

* Remove line break added by Github

thanks

* Github.

* Make this a one-liner

* Reduce to two lines

* This can also be one line

* This can *also* be one line

* Update ProjectLighthouse.Servers.Website/Pages/Partials/SlotCardPartial.cshtml

Co-authored-by: Josh <josh@slendy.pw>

* PR changes

* Update ProjectLighthouse/Migrations/20220916141401_ScoreboardAdvSlot.cs

Co-authored-by: Josh <josh@slendy.pw>

Co-authored-by: Josh <josh@slendy.pw>
2022-09-20 16:08:02 -05:00
Slendy
40d7562660
Fix total queued levels count on Vita 2022-09-17 21:10:48 -05:00
Josh
f6a7fe6283
User settings, level settings, language and timezone selection and more. (#471)
* Initial work for user settings page

* Finish user setting and slot setting pages

* Don't show slot upload date on home page and fix team pick redirection

* Fix upload image button alignment on mobile

* Fix image upload on iPhone

* Remove unused css and add selected button color

* Fix login email check and bump ChromeDriver to 105

* Remove duplicated code and allow users to leave fields empty

* Add unpublish button on level settings and move settings button position

* Don't show edit button on mini card

* Self review bug fixes and users can no longer use an in-use email
2022-09-17 14:02:46 -05:00
Slendy
78faff36b5
Initial support for lbp3 playlists
Will add migration when user settings is merged
2022-09-15 22:53:00 -05:00
Slendy
096a477d0d
Clamp review thumb rating 2022-09-05 05:49:20 -05:00
Slendy
eb7cda8997
Fix StatisticsHelper concurrent exception 2022-09-05 05:04:06 -05:00
Slendy
cf5369d372
Fix friend scores and typo in log 2022-09-03 11:01:35 -05:00
Slendy
22905d419c
Add score logging, friend scores, and fix case processing 2022-09-03 02:39:51 -05:00
Slendy
fddef506c8
Fix photos with me and admin granted slots 2022-09-02 21:52:41 -05:00
Slendy
022bb4dc3f
Correct a typo in endpoint and return blank playlist 2022-09-01 01:37:51 -05:00
Josh
b1ad4d3218
Reduce crashing on LBP3 (#468)
* Implement additional lbp3 endpoints

* Cleanup lbp3 changes

* Update return content types

* Fix developer video return type

* I forgot how xml works

* I need to go to bed
2022-09-01 01:05:39 -05:00
Josh
d640c000aa
Implement LBP1 tags, stricter resource checking, and more (#463)
* Add LBP1 tags, more strict resource checking, and more.

* Fix unit tests

* Add more length checking to dependency parser

* Online editor problems

* Fix tests pt 2

* Self code review and fixed digest bugs

* Don't add content length if it was already set

* Fix status endpoint

* Fix review bug and simplify review serialization

* Fix a typo in review serialization

* Remove duplicated code and fix search

* Remove duplicate database call
2022-08-31 20:38:58 -05:00
Josh
f06fcc4847
Add support for moving levels with decoration tool (#440)
Co-authored-by: Jayden <jvyden@jvyden.xyz>
2022-08-19 22:43:12 +00:00
jvyden
3f52f10960
Make all players in lobby submit unique score
Matches official server behavior.
2022-08-15 01:31:29 -04:00
jvyden
2b90ed52aa
Fix scores, i'm a fucking moron 2022-08-14 19:46:44 -04:00
jvyden
b5abe7738d
Order scores by id then by points
Closes #418
2022-08-14 19:08:43 -04:00
Toru the Red Fox
4737ea5d93
General improvements to hearting and queuing (#403)
* Implement favouriting developer slots

* note todo

* list developer levels in hearted

* set gameversion for hearted developer slot

* removed game exclusions

* reverse order of favouriteSlots and lolcatftw

* also order hearted users

* also reverse order in LBP3 hearted category

* add proper sorting for lolcatftw and favouriteSlots

* forgot a set of brackets lol

* cleanup and queue and hearted category fixes for LBP3

(they now show as empty when they are in fact empty)

* sort favouriteUsers properly

* ok I think I fixed it now

* ok it should be fine now?

* ok this returns wrong

* reorder query to fix it lol

* Update ProjectLighthouse/PlayerData/Profiles/HeartedProfile.cs

Co-authored-by: Jayden <jvyden@jvyden.xyz>

* tweaks

Co-authored-by: Jayden <jvyden@jvyden.xyz>
2022-08-14 16:48:32 -04:00
Josh
d23a264b8a
Lots of bug fixes and performance improvements (#410)
* Many bug fixes and performance enhancements

* Fix warnings and speed up photos with me

* Finish refactoring user serialization

* Finish refactoring user serialization
Use GameTokens instead of User when possible
Prevent negative page sizes

* Fix debug compilation

* Add gzip compression to example nginx config

* Remove deflate changes

* Add UsernameFromWebToken

Co-authored-by: Jayden <jvyden@jvyden.xyz>
2022-08-13 00:56:17 +00:00
jvyden
8fe9bd4c57
Add ability to hide comments on levels and profiles 2022-08-06 14:23:37 -04:00
jvyden
ef6acbb210
Add ability to hide levels 2022-08-05 21:44:17 -04:00