File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,11 +42,13 @@ export default function createApp(fedi: Fedi, config: AppConfig) {
4242 // Detect signature spec on incoming inbox POSTs before federation handles them.
4343 app . use ( "*" , async ( c , next ) => {
4444 if ( c . req . method === "POST" ) {
45- setInboundSigSpec ( c . req . header ( "signature-input" ) != null
46- ? "rfc9421"
47- : c . req . header ( "signature" ) != null
45+ setInboundSigSpec (
46+ c . req . header ( "signature-input" ) != null
47+ ? "rfc9421"
48+ : c . req . header ( "signature" ) != null
4849 ? "draft-cavage"
49- : null ) ;
50+ : null ,
51+ ) ;
5052 }
5153 await next ( ) ;
5254 } ) ;
Original file line number Diff line number Diff line change 198198 border-radius : 3px ;
199199 font-weight : 600 ;
200200 }
201- .log-sig .rfc9421 { background : # d4edda ; color : # 155724 ; }
202- .log-sig .draft-cavage { background : # fff3cd ; color : # 856404 ; }
201+ .log-sig .rfc9421 {
202+ background : # d4edda ;
203+ color : # 155724 ;
204+ }
205+ .log-sig .draft-cavage {
206+ background : # fff3cd ;
207+ color : # 856404 ;
208+ }
203209 </ style >
204210 </ head >
205211 < body >
@@ -433,7 +439,9 @@ <h1>RFC 9421 Field Test</h1>
433439 if ( entry . sigSpec ) {
434440 const sig = document . createElement ( "span" ) ;
435441 sig . className = `log-sig ${ entry . sigSpec } ` ;
436- sig . textContent = entry . sigSpec === "rfc9421" ? "RFC 9421" : "draft-cavage" ;
442+ sig . textContent = entry . sigSpec === "rfc9421"
443+ ? "RFC 9421"
444+ : "draft-cavage" ;
437445 li . append ( " " , sig ) ;
438446 }
439447 ul . appendChild ( li ) ;
You can’t perform that action at this time.
0 commit comments