Josh
3aa9033b67
Rewrite captcha system ( #754 )
...
Rewrite captcha and remove many unused directives
2023-04-29 04:32:42 +00:00
W0lf4llo
aefecc7b12
Make LBP2 lucky dip prefer newer levels and make player count more accurate ( #744 )
...
* Lucky Dip, Newest Levels, & Recently Played change
* almost broke prod :disaster:
* Update ProjectLighthouse.Servers.GameServer/Controllers/Slots/SlotsController.cs
I forgor lol
Co-authored-by: koko <koko@drones.gay>
* Remove TimestampMicros and add random slot selection with bias
* playersInPod count filters by platform
* Hope this actually commits now, idk github
* Apply suggestions from code review
Co-authored-by: Josh <josh@slendy.pw>
* Update ProjectLighthouse.Servers.GameServer/Controllers/StatisticsController.cs
Co-authored-by: Josh <josh@slendy.pw>
* Fix random bias ordering
---------
Co-authored-by: koko <joebiden@kitgaming67.com>
Co-authored-by: koko <koko@drones.gay>
Co-authored-by: Slendy <josh@slendy.pw>
2023-04-29 04:32:36 +00:00
github-actions[bot]
d5f3db9201
Update the localization files ( #756 )
...
[skip ci] Update the localization files
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2023-04-28 23:27:21 -05:00
koko
586c161c71
String fix with login/register button ( #755 )
...
* Display "Login" only when registration is off, remove unused BaseLayoutStrings
* Remove un-used strings from BaseLayout
2023-04-29 03:44:33 +00:00
Slendy
d806664b62
Make MatchHelper use ConcurrentDictionary
2023-04-28 22:40:43 -05:00
koko
6f55ce3226
Add basic ability to flag duplicate levels ( #753 )
...
* Add the basics for duplicate level flagging
* Use this.BadRequest instead of StatusCode(500)
* Remove redundant slot creator check
* Include creator entity
* Redirect back to slot page for unauthenticated reqs
* Check if reporter = level creator on server side
* A few formatting nitpicks with the webhook
* Move external url config to a shorter var
* Change duplicate flag button icon to a flag
* Remove accidental dollar sign
Co-authored-by: Josh <josh@slendy.pw>
* Remove another accidental dollar sign
Co-authored-by: Josh <josh@slendy.pw>
* Three dollar signs... I'm blind
Co-authored-by: Josh <josh@slendy.pw>
* Update ProjectLighthouse.Servers.Website/Controllers/Moderator/ModerationSlotController.cs
Co-authored-by: Josh <josh@slendy.pw>
---------
Co-authored-by: Josh <josh@slendy.pw>
2023-04-27 02:48:19 +00:00
Josh
eb79d7cf48
Optimize slot endpoints ( #750 )
...
* Remove AsEnumerable usage in SlotsController
* Remove AsEnumerable usages from LBP3 categories
* Fix typo in OrderBy statement
2023-04-26 20:13:27 +00:00
dependabot[bot]
6b3b8d8271
Bump Selenium.WebDriver from 4.8.2 to 4.9.0 ( #752 )
...
Bumps Selenium.WebDriver from 4.8.2 to 4.9.0.
---
updated-dependencies:
- dependency-name: Selenium.WebDriver
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-04-25 17:03:26 +00:00
dependabot[bot]
3e7adf5208
Bump YamlDotNet from 13.0.2 to 13.1.0 ( #751 )
...
Bumps [YamlDotNet](https://github.com/aaubry/YamlDotNet ) from 13.0.2 to 13.1.0.
- [Release notes](https://github.com/aaubry/YamlDotNet/releases )
- [Commits](https://github.com/aaubry/YamlDotNet/compare/v13.0.2...v13.1.0 )
---
updated-dependencies:
- dependency-name: YamlDotNet
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-04-25 17:03:20 +00:00
Slendy
bd6bbbde96
Bump EntityFramework related packages to 7.0.5
2023-04-25 11:39:48 -05:00
dependabot[bot]
8c19634e09
Bump dotnet-trace from 6.0.351802 to 7.0.421201 ( #749 )
...
Bumps [dotnet-trace](https://github.com/dotnet/diagnostics ) from 6.0.351802 to 7.0.421201.
- [Release notes](https://github.com/dotnet/diagnostics/releases )
- [Commits](https://github.com/dotnet/diagnostics/compare/v6.0.351802...v7.0.421201 )
---
updated-dependencies:
- dependency-name: dotnet-trace
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-25 16:26:13 +00:00
dependabot[bot]
b46959762c
Bump dotnet-ef from 7.0.4 to 7.0.5 ( #748 )
...
Bumps [dotnet-ef](https://github.com/dotnet/efcore ) from 7.0.4 to 7.0.5.
- [Release notes](https://github.com/dotnet/efcore/releases )
- [Commits](https://github.com/dotnet/efcore/compare/v7.0.4...v7.0.5 )
---
updated-dependencies:
- dependency-name: dotnet-ef
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-04-25 16:24:37 +00:00
dependabot[bot]
9f14a2019f
Bump BouncyCastle.Cryptography from 2.1.1 to 2.2.1 ( #747 )
...
Bumps [BouncyCastle.Cryptography](https://github.com/bcgit/bc-csharp ) from 2.1.1 to 2.2.1.
- [Release notes](https://github.com/bcgit/bc-csharp/releases )
- [Commits](https://github.com/bcgit/bc-csharp/compare/release-2.1.1...release-2.2.1 )
---
updated-dependencies:
- dependency-name: BouncyCastle.Cryptography
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-04-25 16:24:01 +00:00
dependabot[bot]
02896fee86
Bump Microsoft.AspNetCore.Mvc.Testing from 7.0.4 to 7.0.5 ( #739 )
...
Bumps [Microsoft.AspNetCore.Mvc.Testing](https://github.com/dotnet/aspnetcore ) from 7.0.4 to 7.0.5.
- [Release notes](https://github.com/dotnet/aspnetcore/releases )
- [Changelog](https://github.com/dotnet/aspnetcore/blob/main/docs/ReleasePlanning.md )
- [Commits](https://github.com/dotnet/aspnetcore/compare/v7.0.4...v7.0.5 )
---
updated-dependencies:
- dependency-name: Microsoft.AspNetCore.Mvc.Testing
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-04-25 13:54:53 +00:00
dependabot[bot]
8b1fa0908e
Bump Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation from 7.0.4 to 7.0.5 ( #742 )
...
Bump Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation
Bumps [Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation](https://github.com/dotnet/aspnetcore ) from 7.0.4 to 7.0.5.
- [Release notes](https://github.com/dotnet/aspnetcore/releases )
- [Changelog](https://github.com/dotnet/aspnetcore/blob/main/docs/ReleasePlanning.md )
- [Commits](https://github.com/dotnet/aspnetcore/compare/v7.0.4...v7.0.5 )
---
updated-dependencies:
- dependency-name: Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation
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-04-25 13:54:30 +00:00
dependabot[bot]
1d34d64fb2
Bump Redis.OM from 0.4.2 to 0.5.0 ( #743 )
...
Bumps [Redis.OM](https://github.com/redis/redis-om-dotnet ) from 0.4.2 to 0.5.0.
- [Release notes](https://github.com/redis/redis-om-dotnet/releases )
- [Commits](https://github.com/redis/redis-om-dotnet/compare/v0.4.2...v0.5.0 )
---
updated-dependencies:
- dependency-name: Redis.OM
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-04-25 13:54:11 +00:00
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