Coffee journaling on ATProto (alpha) alpha.arabica.social
coffee
17
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: trigger reauth event on non-brew saves in brew form

+14 -2
+14 -2
static/js/combo-select.js
··· 290 290 website: this.newRoasterWebsite, 291 291 }), 292 292 }); 293 - if (!resp.ok) throw new Error("Failed to create roaster"); 293 + if (!resp.ok) { 294 + if (resp.status === 401) { 295 + window.__showSessionExpiredModal(); 296 + return; 297 + } 298 + throw new Error("Failed to create roaster"); 299 + } 294 300 const roaster = await resp.json(); 295 301 data.roaster_rkey = roaster.rkey || roaster.RKey; 296 302 } catch (e) { ··· 431 437 credentials: "same-origin", 432 438 body: JSON.stringify(data), 433 439 }); 434 - if (!resp.ok) throw new Error(`Create failed: ${resp.status}`); 440 + if (!resp.ok) { 441 + if (resp.status === 401) { 442 + window.__showSessionExpiredModal(); 443 + return; 444 + } 445 + throw new Error(`Create failed: ${resp.status}`); 446 + } 435 447 const created = await resp.json(); 436 448 const rkey = created.rkey || created.RKey; 437 449