Skip to content

Instantly share code, notes, and snippets.

View ramiNoodleCode's full-sized avatar

ramiNoodleCode

View GitHub Profile
@ramiNoodleCode
ramiNoodleCode / plzreview_test.php
Created April 28, 2026 21:33
PlzReview multi-reviewer tests (PR #1428)
<?php declare(strict_types=1);
require_once('lib/IRCCat.php');
require_once('modules/plzreview.php');
require_once('modules/plzreview2.php');
/**
* Tests for PlzReview and the Plzreview2 subclass added in PR #1428.
*
* The PR introduces multi-reviewer support:
@ramiNoodleCode
ramiNoodleCode / contentful_translation_fix.diff
Created November 26, 2025 22:19
Fix: Contentful translation fallback to untranslated content
diff --git a/phplib/Api/Public/Contentful/GetEligibleContentAndTranslationsByTypeName.php b/phplib/Api/Public/Contentful/GetEligibleContentAndTranslationsByTypeName.php
index 1f2708c53ad7..4c9f0525bc08 100644
--- a/phplib/Api/Public/Contentful/GetEligibleContentAndTranslationsByTypeName.php
+++ b/phplib/Api/Public/Contentful/GetEligibleContentAndTranslationsByTypeName.php
@@ -95,8 +95,12 @@ public static function handle(Api_Input $input, Api_Response $response) {
$input->content_type,
);
+ // If translations are available, use them; otherwise fallback to original content
+ // This prevents filtering out content when translations haven't been compiled yet
diff --git a/modules/CheckoutSheet/src/App/Context.ts b/modules/CheckoutSheet/src/App/Context.ts
index ddd76588ed6e..33d1f084e6ad 100644
--- a/modules/CheckoutSheet/src/App/Context.ts
+++ b/modules/CheckoutSheet/src/App/Context.ts
@@ -55,7 +55,7 @@ export const SheetContext = React.createContext<CheckoutSheetContext>({
Context.getBoolean("is_mobile", false)
? "checkout/email_subscription_checkbox_mweb"
: "checkout/email_subscription_checkbox_desktop",
- false
+ true