feat: community post/comment/reply reactions#810
Open
clbotdev wants to merge 7 commits into
Open
Conversation
added 6 commits
June 20, 2026 14:22
…ay & LemonSqueezy - Stripe: Uses stripe.webhooks.constructEvent() with webhookSecret to verify signatures and validate checkout.session.completed / invoice.paid events. - Razorpay: Uses HMAC-SHA256 with timingSafeEqual for signature validation on order.paid and subscription.charged events. - LemonSqueezy: Uses HMAC-SHA256 with timingSafeEqual for x-signature validation on order_created (one_time), subscription_payment_success, and subscription_resumed events. - Webhook route: Reads raw body via req.text() and forwards signature headers to paymentMethod.verify(). - Payment interface: Updated verify() signature to accept rawBody and headers. - DB schema: Added stripeWebhookSecret to SiteInfo/SettingsSchema. - Fixed TypeScript type errors with Uint8Array wrapping for crypto.timingSafeEqual calls. - Cleaned pre-existing unused import lint errors in comment.tsx and post-card.tsx.
| import { CommunityMedia, CommunityPost } from "@courselit/common-models"; | ||
| import { capitalize, truncate } from "@courselit/utils"; | ||
| import { MessageSquare, Pin, ThumbsUp } from "lucide-react"; | ||
| import { MessageSquare, Pin } from "lucide-react"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #809 and #535
Part 1: Community Reactions (Closes #809)
Evolve the community post/comment/reply like system to support multiple emoji reactions.
Backend
Frontend
Part 2: Webhook Signature Verification (Closes #535)
Implements webhook signature verification for all three payment processors.
Changes
Verification