Commit graph

76 commits

Author SHA1 Message Date
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
jvyden
b6da930e20
Merge main into mod-panel 2022-08-05 17:02:19 -04:00
jvyden
e5028c870d
Include hint_start in hearted slots and users 2022-08-04 15:41:17 -04:00
Josh
6c989e7923
Implement story mode player counts endpoint (#400) 2022-08-04 15:07:52 -04:00
Jayden
2ab1e72037
Implement basic privacy settings (#392)
* Add ability for clients to submit and retrieve privacy settings data

* Make slot pages and user pages respect user's privacy settings

* Prevent webhook from publishing new levels if user's privacy settings disallow it

* Hide levels/profiles from respective pages depending on privacy settings

* Apply suggestions from review
2022-08-02 18:22:56 -04:00
Josh
fdf1988a34
Implement online story features and photos taken in levels (#389)
* Initial commit to support developer slots

* Remove hearting story levels, prevent race condition in adding dev slots, and remove LastContactHelper local db object.

* Fix photos taken in pod showing wrong level.

* Add support for pod and create mode photos

* Add time display to photos and added photo display to level page

* Add pagination to in game photos

* Update in pod description

* Fix migration

* Adjust wording of photos taken on local slots

* Set slot default type to User

Fixes old slots being set to developer slots

* Apply suggestions

* Add player count to developer slots

Co-authored-by: Jayden <jvyden@jvyden.xyz>
2022-08-01 19:46:29 +00:00
jvyden
99f7dadb21
Add endpoints for status monitoring 2022-08-01 01:20:05 -04:00
jvyden
34d0ec0337
Fix earth hash not being able to reset to nothing
Closes #383
2022-08-01 01:12:53 -04:00
Toru the Red Fox
48f01f15a1
Don't send new line if announce text is blank (#388)
* eula license customizability

* keep announce text blank if it's set to blank in config

* Update ServerConfiguration.cs

* Revert "eula license customizability"

This reverts commit a9c41608aa.

* Revert "Update ServerConfiguration.cs"

This reverts commit 3acd1e0e2b.
2022-08-01 03:48:55 +00:00
Josh
1d1099ed4e
Fix heart and queue lists (#386) 2022-07-31 17:01:36 -04:00
jvyden
ab346bc906
Add logging to StartPublish, fix bug where levels do not publish if rootLevel does not exist 2022-07-30 18:17:28 -04:00
Josh
a599732894
Parse root level version instead of relying on token gameversion. (#332)
* Implement root level revision parsing

* Fix class naming

* Implement suggestions from code review

* Safety checks and remove deploy build

* Don't attempt to parse LVLt and change branch nomenclature.

* Treat text formatted resources as unsafe

* Update magic header of test script file

* Fix LBP Vita revision check

Co-authored-by: Jayden <jvyden@jvyden.xyz>
2022-07-30 01:23:37 -04:00
Josh
e937f4f7cb
Fix duplicate resource uploading (#382) 2022-07-30 03:48:44 +00:00
Jayden
958ddfeab0
Potential fix for LBP2 search
Unsigned because I'm not home, and I'm on my phone.
2022-07-29 21:04:18 -04:00
jvyden
e18e606787
Implement LBP3 search tab
Closes #377
2022-07-29 17:20:01 -04:00
jvyden
d810a3a9f1
Implement busiest tab 2022-07-29 16:47:14 -04:00
jvyden
fc5b061b3a
Fix gameVersion comparison in queue and hearted levels
Closes #206
2022-07-29 16:14:55 -04:00