Commit graph

1754 commits

Author SHA1 Message Date
Slendy
ddee367586
Add more logging to resources and matching
Change uploading to use ReadAllAsync instead of readFromPipeReader
2023-04-20 11:00:55 -05:00
Slendy
f03d1d7c17
Utilize EF 7 bulk delete operations instead of RemoveRange 2023-04-18 20:45:42 -05:00
uh wot
48c3384e0c
Allow streaming chunk filetype in mod filter (#745) 2023-04-18 20:59:25 +00:00
Slendy
fc522b33a4
Serialize SlotType with Slot API responses 2023-04-15 22:39:33 -05:00
dependabot[bot]
9b7924cd07
Bump Selenium.WebDriver.ChromeDriver from 111.0.5563.6400 to 112.0.5615.4900 (#733)
Bump Selenium.WebDriver.ChromeDriver

Bumps [Selenium.WebDriver.ChromeDriver](https://github.com/jsakamoto/nupkg-selenium-webdriver-chromedriver) from 111.0.5563.6400 to 112.0.5615.4900.
- [Release notes](https://github.com/jsakamoto/nupkg-selenium-webdriver-chromedriver/releases)
- [Changelog](https://github.com/jsakamoto/nupkg-selenium-webdriver-chromedriver/blob/master/RELEASE-NOTES.txt)
- [Commits](https://github.com/jsakamoto/nupkg-selenium-webdriver-chromedriver/compare/v.111.0.5563.6400...v.112.0.5615.4900)

---
updated-dependencies:
- dependency-name: Selenium.WebDriver.ChromeDriver
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-14 23:27:22 +00:00
Slendy
c558d5aebf
Fix duplicate photos on levels 2023-04-14 16:45:56 -05:00
Slendy
e1405c9de4
Parse request bodies as UTF8 instead of ASCII 2023-04-14 16:45:10 -05:00
Slendy
d8c36923d9
Fix deserialized PhotoSubject bounds not being set in database entity 2023-04-11 20:27:43 -05:00
Slendy
5fbaa5df20
Fix level republishing not updating resource or rootLevel 2023-04-11 20:23:43 -05:00
koko
c50e53ad9a
Display a lock icon next to locked levels (#738)
* Display a lock icon next to locked levels

* C# Return Switch shenanigans

* No clue where that line break came from

* Don't render a semicolon

* Move permission level color/lock icon to website extension

* Simplify GetLevelLockIcon

---------

Co-authored-by: Josh <josh@slendy.pw>
2023-04-11 02:16:03 +00:00
Slendy
8e096052ce
Fix duplicate photos on in-game profiles 2023-04-10 20:53:32 -05:00
Slendy
5028266ca0
Fix serialization of Photo LargeHash 2023-04-10 01:59:54 -05:00
Slendy
a706ef6836
Don't log contentLength warnings if the header is null 2023-04-07 21:00:08 -05:00
Slendy
7eeda59eab
Fix digest calculation when using deflate compression 2023-04-06 22:29:31 -05:00
Slendy
4150e44f80
Refactor code for reading the body of a request 2023-04-06 22:23:49 -05:00
Slendy
2372dfbb9e
Store XML serializers in ConcurrentDictionary for thread safety 2023-04-05 00:09:46 -05:00
Slendy
767f6271f2
Include internal slot ID in ApiSlot response 2023-04-04 20:53:45 -05:00
Slendy
f2dd41dd52
Revert slot API to old functionality 2023-04-04 20:51:53 -05:00
Slendy
c6156d85cd
Simplify reading a body of a request 2023-04-03 01:04:32 -05:00
Slendy
d6788f0965
Prevent null values from being censored 2023-04-03 01:02:41 -05:00
Slendy
89556d5dfa
Make serializer cache use a tuple key 2023-04-02 19:39:53 -05:00
PorkchopGMX
b3420e080e
Update CONTRIBUTING.md 3: auuuugggghhhh (#729)
More minor copyediting that i forgot to do until more than 6 months after i did my last pr lol
2023-04-02 23:54:10 +00:00
Josh
2210541894
Fix memory leak in GameServer (#731)
* Convert entities to serializable after aggregating rather before

* Cache instances of CustomXmlSerializer and create readonly constants for reused settings

* Change CustomXmlSerializer and serializer cache to work with deserializer
2023-04-02 23:45:19 +00:00
Josh
0253864f5e
Add LBP1 level scoreboards (#728)
* Add missing lbp1 scoreboard endpoint

* Allow all score types to be fetched

* Make lbp1 scores start at highest

* Fix query to use ScoreType from options

* Implement multi-type scoreboard response
2023-03-31 21:08:27 +00:00
Slendy
5e4954ae32
Update Dockerfile to comply with dotnet 7.0.2 SDK changes 2023-03-30 20:08:20 -05:00
Slendy
c03c9cdf2c
Enable thread theft prevention for redis 2023-03-30 19:38:49 -05:00
Slendy
c34b7f3e79
Revert website Forbid and Unauthorized method usage to StatusCode
This is because by default ASP.NET expects an authentication scheme to be registered when using these methods.
2023-03-30 19:23:11 -05:00
Josh
50d1d9c7e5
Fix doubly sanitized strings (#727)
* Add migration to de-sanitize database strings

* Remove SanitizationHelper functions related to XML sanitization

* Remove sanitization usage from website

* Implement suggested changes
2023-03-30 23:03:08 +00:00
dependabot[bot]
f5c8f53437
Bump Discord.Net.Webhook from 3.9.0 to 3.10.0 (#723)
Bumps [Discord.Net.Webhook](https://github.com/Discord-Net/Discord.Net) from 3.9.0 to 3.10.0.
- [Release notes](https://github.com/Discord-Net/Discord.Net/releases)
- [Changelog](https://github.com/discord-net/Discord.Net/blob/dev/CHANGELOG.md)
- [Commits](https://github.com/Discord-Net/Discord.Net/compare/3.9.0...3.10.0)

---
updated-dependencies:
- dependency-name: Discord.Net.Webhook
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-30 06:21:25 +00:00
koko
89877d359f
Add comment form max char limit validation (#722)
* Add comment form max char limit validation, minor visual nitpick

* Italicize banned/disabled/etc messages within comments
2023-03-30 06:03:12 +00:00
dependabot[bot]
81580c6afd
Bump SixLabors.ImageSharp from 3.0.0 to 3.0.1 (#724)
Bumps [SixLabors.ImageSharp](https://github.com/SixLabors/ImageSharp) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/SixLabors/ImageSharp/releases)
- [Commits](https://github.com/SixLabors/ImageSharp/compare/v3.0.0...v3.0.1)

---
updated-dependencies:
- dependency-name: SixLabors.ImageSharp
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-30 06:02:31 +00:00
Slendy
ecc1b844b1
Add logging for empty request body bug 2023-03-30 00:16:20 -05:00
Slendy
ff470bcb34
Fix certain scores not being uploaded 2023-03-29 23:36:47 -05:00
Slendy
3713c4d20c
Update lucky dip description 2023-03-29 21:47:08 -05:00
Slendy
a603cdb002
Use Unauthorized instead of Forbid on Website & Api 2023-03-29 21:44:16 -05:00
Slendy
b0858448c8
Fix LBP3 playlist editing 2023-03-29 19:34:16 -05:00
Slendy
8376928a6c
Fix score uploading on story levels 2023-03-29 13:32:48 -05:00
Slendy
86e07fdd9d
Handle null previewSlot in category system 2023-03-29 13:19:01 -05:00
Slendy
6fcc51fca3
Make BackgroundHash not nullable 2023-03-29 13:06:01 -05:00
Slendy
d41b518fc2
Fix heart count on users in-game 2023-03-28 20:25:26 -05:00
Slendy
2924597c7b
Fix published level count in lbp1 2023-03-28 20:20:42 -05:00
Slendy
7ac0a6785d
Fix level missing resource response 2023-03-28 15:33:09 -05:00
Slendy
3ebdc03951
Properly serialize slot resources 2023-03-28 15:19:25 -05:00
Slendy
795a6b9b6e
Set playcount when serializing 2023-03-28 15:02:30 -05:00
Slendy
e3843cb8c4
Fix content-type for planetStats 2023-03-28 14:40:05 -05:00
Slendy
9451babb76
Add null handling to SlotBase 2023-03-28 14:32:49 -05:00
Slendy
7c1d109157
Fix level thumbs up and thumbs down being switched 2023-03-28 14:28:11 -05:00
Slendy
90f79d67c4
Fix level publishing 2023-03-28 14:26:09 -05:00
Slendy
deac39ef97
Fix ScoreboardResponse returning points as count 2023-03-28 14:03:35 -05:00
Slendy
65e1ffc993
Fix photo dates in-game 2023-03-28 11:18:24 -05:00