bring back reactions

This commit is contained in:
2026-06-07 23:01:58 +03:00
parent 5dfe477607
commit b63b6a1682
11 changed files with 248 additions and 35 deletions

View File

@@ -1,8 +1,9 @@
export const b = {
babycodePreviewEndpoint: '/api/babycode-preview/',
init: 'babycodeEditorCharCountInit localizeTimestamps',
}
const BABYCODE_PREVIEW_ENDPOINT = '/api/babycode-preview/';
const getThreadId = () => {
const scheme = window.location.pathname.split("/");
if (scheme[1] !== 'threads' || scheme[2] === 'new') {
@@ -158,7 +159,7 @@ export async function babycodePreview(payload, _, el) {
}),
}
const f = await fetch(b.babycodePreviewEndpoint, options);
const f = await fetch(BABYCODE_PREVIEW_ENDPOINT, options);
try {
if (!f.ok) {
console.error(f);