@@ -3397,13 +3397,9 @@ async fn get_invited_users(npub: String) -> Result<u32, String> {
33973397 Ok ( unique_acceptors. len ( ) as u32 )
33983398}
33993399
3400- // Guy Fawkes Day 2025 constants
3401- // TESTING: Using today (Nov 4th, 2025) for testing (will change to Nov 5th for production)
3402- const FAWKES_DAY_START : u64 = 1762214400 ; // 2025-11-04 00:00:00 UTC (TESTING - actual Nov 4, 2025)
3403- const FAWKES_DAY_END : u64 = 1762300800 ; // 2025-11-05 00:00:00 UTC (TESTING - actual Nov 5, 2025)
3404- // PRODUCTION VALUES (uncomment for release):
3405- // const FAWKES_DAY_START: u64 = 1762300800; // 2025-11-05 00:00:00 UTC
3406- // const FAWKES_DAY_END: u64 = 1762387200; // 2025-11-06 00:00:00 UTC
3400+ // Guy Fawkes Day 2025 constants - PRODUCTION
3401+ const FAWKES_DAY_START : u64 = 1762300800 ; // 2025-11-05 00:00:00 UTC
3402+ const FAWKES_DAY_END : u64 = 1762387200 ; // 2025-11-06 00:00:00 UTC
34073403
34083404/// Helper function to check if a user has a valid Guy Fawkes Day badge
34093405async fn has_fawkes_badge_internal ( user_pubkey : PublicKey ) -> Result < bool , String > {
@@ -3467,18 +3463,8 @@ async fn claim_fawkes_badge() -> Result<bool, String> {
34673463 return Ok ( true ) ; // Already claimed
34683464 }
34693465
3470- // Create and publish the badge claim event
3471- // TESTING: Add 5-minute expiration for testing (remove for production)
3472- let expiry_time = Timestamp :: from_secs (
3473- std:: time:: SystemTime :: now ( )
3474- . duration_since ( std:: time:: UNIX_EPOCH )
3475- . unwrap ( )
3476- . as_secs ( ) + 300 // 5 minutes for testing
3477- ) ;
3478-
34793466 let event_builder = EventBuilder :: new ( Kind :: ApplicationSpecificData , "fawkes_badge_claimed" )
3480- . tag ( Tag :: custom ( TagKind :: d ( ) , vec ! [ "fawkes_2025" ] ) )
3481- . tag ( Tag :: expiration ( expiry_time) ) ; // TESTING: Remove this line for production
3467+ . tag ( Tag :: custom ( TagKind :: d ( ) , vec ! [ "fawkes_2025" ] ) ) ;
34823468
34833469 // Build and sign the event
34843470 let event = client. sign_event_builder ( event_builder) . await . map_err ( |e| e. to_string ( ) ) ?;
0 commit comments