Repository navigation
This is a significant new release. You can now integrate with Stripe to create subscriptions, a vital way to generate revenue from your community. Badges now label your users according to role, including subscription status. They're totally optional. We also welcome French speaking users with their own translation. Check the list below for more changes.
Breaking Changes
- Database changes for subscriptions and badges. Run
PopForums22to23.sqlfrom thePopForums.Sqlproject before deploying. - Removed the
PopForums:Search:Providersetting. The functions host now chooses its search provider by callingAddPopForumsAzureSearch()orAddPopForumsElasticSearch()inProgram.cs, the same as the web app. Use one of these if you're using the associated search provider. ElasticSearch now always usesSearch:Url, and usesSearch:Keyonly when it's set. Previously, the functions host used a config value to choose the provider. - Removed the dependency on SixLabors.ImageSharp. Avatars, profile photos and post images are now resized in the browser before upload, and the server only reads the image header to check the format (JPEG, PNG or GIF) and the size limits, without decoding the image. Uploads that are over the limits are rejected instead of resized, so anything that uploads without the forum's own front end must resize first. The avatar and photo KB limits are now enforced, too.
IImageService.ConstrainResize()is gone. Use the newIImageInspector.Validate()to check an image. It's registered in DI like the other services, so you can replace it, e.g. to accept other formats.IPostImageService.ProcessImageIsOk()takes only the bytes. The stored content type now comes from the image itself rather than what the browser sent.IUserService.EditUserProfileImages()returns a list of error messages, and changes nothing when the list isn't empty.UserServiceno longer takes anIImageServicein its constructor, and bothUserServiceandPostImageServicenow take anIImageInspector.
- Replaced Google reCAPTCHA with Cloudflare Turnstile for sign-up. The
PopForums:ReCaptcha:*settings are no longer read, so if you used reCAPTCHA, sign-up has no bot check until you addPopForums:Turnstile:UseTurnstile,SiteKeyandSecretKey. See configuration.IReCaptchaServiceandReCaptchaResponseare nowITurnstileServiceandTurnstileResponse, and theIConfigproperties are nowUseTurnstile,TurnstileSiteKeyandTurnstileSecretKey.SecurityLogType.ReCaptchaFailedis nowCaptchaFailed, with the same value. Its log entries now include Turnstile's error codes.
What's New?
- Enable subscriptions with Stripe integration #426
- User badges #453
- Update to .NET 11 #460
- Replace reCAPTCHA with Turnstile #458
- Add French translation #414
- Make upvotes update in real time #251
- Put Azure Functions into a class library #430
- Surface and fix pre-existing TypeScript type errors #411
- Force websockets without fallback to enable non-sticky, multi-node use #412
- Correct various security defects and vulnerabilities #413
- Clear vote-up list when click/tap away from it #420
- Refactor ForumRouteConstraint to make a sync call to database #422
- Make CacheHelper thread safe #423
- ModeratorController doesn't specify the POPForums AuthenticationScheme #428
- Modernize client build stuff #436
- Replace font-based icons with svg #419
- Retire legacy MD5 password check #440
- Forum/topic update listeners not gated by permissions #441
- User table lacks index to look up most recent users #445
- Use client-side image resize before upload #387
- Refactor photo upload page to act on file selection #446
- Improve session tracking #450
- Replace pagerlinks icons with semantically correct ones #452
- Set cache headers correctly on image serving for CDN use #455
- Optimize Elastic index creation #456
- BUG: Forum auth middleware overwrites host app's ClaimsPrincipal instead of merging #427
- BUG: Comment links from YouTube break parsing #398
- BUG: Password reset potentially handles token validation wrong #439
- BUG: Notification feed doesn't escape title data #406
- BUG: Logout redirect is open #442
- BUG: Real-time new post breaks when hidden #407
- BUG: Insertion of new topic to list uses innerHTML instead of textContent #408
- BUG: Text parser not case insensitive when sanitizing #409
- BUG: Rare but potential race condition in app startup if db is not available #415
- BUG: Text parser can persist naughty strings in PM's #438
- BUG: Login not considering target of redirect #410
- Embed debug symbols (PDBs) in the NuGet packages, with Source Link, so you can step into POP Forums code when debugging.