korapress
Jun 07, 2026

My parents seated me at the kitchen table and said, “We’re not using your brother’s college savings to keep you a.l.i.v.e.”

My parents seated me at the kitchen table and said, “We’re not using your brother’s college savings to keep you a.l.i.v.e.”

My parents seated me at the kitchen table and said, “We’re not using your brother’s college savings to keep you a.l.i.veriously unwell, and suddenly treated as though my place in the family depended on a number printed at the bottom of an insurance letter. Before sunrise the next morning, I walked away with seventy-three dollars, one faded backpack, and a plan my parents would spend years wishing they had never forced me to make.

My mother’s hands rested beside the unopened letter, perfectly still against the polished oak table. My father stood behind her with his arms folded, blocking part of the bright kitchen window as though he had already decided there was nothing left to discuss.

“What happens now?” I asked.

My mother gave me the composed expression she always wore before saying something painful in a voice gentle enough to make it sound reasonable.

“We’ve decided not to continue with the treatment.”

For one brief second, I convinced myself she meant not yet. Maybe they wanted another opinion, another clinic, or additional paperwork. I searched her face for some sign that I had misunderstood.

Upstairs, my brother Caleb’s music pulsed through the ceiling.

“What do you mean, not continue?”

She released a quiet breath, as if I were forcing her to repeat a household rule I should already understand.

“Your father and I discussed it,” she said. “We believe that if things are meant to work out, they will.”

I turned toward my father.

“We can’t spend everything on this,” he said. “Caleb begins university next year. Tuition, housing, textbooks—we planned for all of it. We can’t sacrifice his future.”

The word sacrifice struck harder than the rest of his sentence. My treatment was being described as an uncertain expense. Caleb’s campus apartment was being treated as a guaranteed future.

The money existed. They had talked about the college account for years.

“You’re choosing his education over me,” I said.

My mother’s lips tightened.

“Don’t make it sound unpleasant, Elena. This isn’t a choice.”

“It certainly sounds like one.”

“We are placing our trust in the plan intended for our family.”

She carefully aligned the insurance letter with the edge of the table, then rested one finger over the estimated cost. She never slid the paper toward me. Even so, I could see the figure printed in the bottom corner, dark, precise, and impossible to ignore.

When Caleb’s music became louder, my father glanced toward the staircase.

“Your brother has worked very hard,” he said. “We made commitments to him.”

“You made commitments to me too.”

Neither of them answered.

Their silence revealed more than any diagnosis ever could.

I had always understood that Caleb was their favorite. He received new sneakers, private lessons, summer programs, driving classes, and praise for accomplishments I was expected to achieve without recognition. I received his old belongings and reminders not to create problems.

Until that evening, their favoritism had seemed small enough for me to endure.

This was no longer small.

They were studying a price and deciding that I was not worth paying it.

I pushed my chair away from the table. The wooden legs dragged across the floor with a sharp scrape that made my mother flinch.

“Elena,” she said in warning.

I remained there for another moment, waiting for one of them to act as though the fifteen-year-old standing before them mattered more than the financial plan they had already made.

Neither moved.

I went upstairs, passed Caleb’s closed bedroom door, and entered my room. I closed the door carefully instead of slamming it. I wanted them to remember that I had heard and understood every word.

No one followed me.

For nearly an hour, I sat on the edge of my bed while my mother began preparing dinner and my father switched on the television downstairs. Their evening carried on as though the uncomfortable part had already passed.

That was the moment my fear turned into certainty.

If I wanted a chance to recover, I had to stop expecting them to protect me.

I opened my aging laptop. The loose hinge clicked, and the screen needed almost a full minute to light up. Then I began typing questions no child should ever need to search.

Could a minor receive medical treatment without parental permission?

Could refusal of necessary care qualify for emergency custody?

Would temporary guardianship allow another relative to authorize treatment?

How long would emancipation take?

Every answer directed me toward another application, legal process, or waiting period. I found information about school counselors, child-welfare agencies, legal-aid organizations, and emergency family-court petitions.

The nearest youth shelter had a waiting list. Emancipation could take months. A normal custody hearing might require documentation, interviews, and more time than I believed I had.

Then one name entered my mind.

Ruth.

My mother’s older sister lived forty minutes away in an aging apartment building. My parents spoke about her as though she had accomplished nothing. They made jokes about her tutoring work, her faded red car, and the quiet way she lived.

According to them, Ruth could barely manage her own life.

But Ruth had always truly seen me.

Whenever relatives spoke over me, she waited until I had a chance to answer. When I was ten, I overheard her asking my mother why I looked as though nobody had shown me affection in weeks.

I still remembered standing behind the hallway wall, holding my breath because, for once, someone had noticed.

Her phone number was saved in my contacts.

I did not call her yet.

First, I packed.

I took two shirts, one pair of jeans, my phone charger, my identification, and the medical documents I had hidden underneath my school notebooks. Then I emptied the glass jar inside my closet and counted the money twice.

Seventy-three dollars.

I placed everything inside an old backpack, zipped it closed, and waited until sometime after midnight.

The house gradually became still around me. Pipes clicked behind the walls. The hallway floor creaked when my father walked from the bathroom back to his bedroom. Several minutes later, my parents’ door closed.

Eventually, the music in Caleb’s room stopped.

I placed the backpack over my shoulders and slowly opened my bedroom door.

Family photographs covered the hallway walls. Caleb holding trophies. Caleb presenting a project at a science fair. Caleb standing proudly between my smiling parents.

I appeared in only two older pictures positioned near the bottom of the staircase.

I left without writing a note.

Cool air brushed against my face when I stepped onto the porch. I quietly pulled the door closed behind me and walked away from the only home I had ever known.

Five blocks later, my legs started to tremble.

I found a bench beside a twenty-four-hour grocery store, directly beneath a streetlight that hummed in the wind. Shopping carts clattered somewhere nearby. No one seemed to notice the girl with a backpack sitting by herself after midnight.

I remained there until the dark sky slowly faded to gray.

I considered calling my school counselor, but I could already imagine the chain of reports, interviews, and temporary placements that might follow. Maybe they would help me. Maybe they would return me home while they investigated.

I could not take the chance of waking up at that kitchen table again while my mother explained why my fear was inconvenient.

The sun appeared behind the strip mall, washing the storefronts in gold. People walked past carrying coffee cups and holding dog leashes. I watched each of them while somehow remaining invisible.

Finally, I pulled out my phone.

My thumb paused above Ruth’s name.

Asking someone for help felt frightening because I had spent my entire life being taught not to need anything. Then I pictured the insurance letter lined up perfectly with the table, my father’s folded arms, and that single word: sacrifice.

I tapped the call button.

Ruth picked up on the second ring.

“Hello?”

My throat tightened. For the first time since I had walked away, tears stung behind my eyes.

“Ruth,” I said. “It’s Elena.”

There was no uncertainty in her voice, no criticism, and no insistence that I explain everything before she listened.

“Where are you?”

I told her.

A car horn echoed from the other side of the parking lot. My fingers closed more tightly around the phone as the whole morning seemed to pause with me.

“Stay right there,” Ruth said. “I’m on my way.”

She arrived twenty-eight minutes later in the faded red car my parents loved to mock.

Ruth stopped at the curb so quickly that one tire touched the edge of the sidewalk. She stepped out wearing sweatpants, an old cardigan, and two different socks inside worn canvas shoes.

She had not stopped to make herself presentable.

She had simply come.

The moment she saw me, she did not demand an explanation. She crossed the pavement, removed the backpack from my shoulders, and wrapped her arms around me.

I stood stiffly at first.

Being comforted felt unfamiliar enough to make me suspicious.

Then Ruth whispered, “You did the right thing by calling me.”

Something inside me finally gave way. I pressed my face against her shoulder and cried quietly while shoppers moved around us.

Ruth did not tell me to calm down. She did not ask me to consider my parents’ perspective. She held me until I could breathe normally again.

Once we were inside her car, she turned the heater on even though the morning was not particularly cold. She placed a bottle of water in my hands and waited.

“Tell me what happened,” she said.

I showed her the medical documents first because I was afraid my voice would fail.

She read every page.

Unlike my mother, Ruth did not keep the papers perfectly aligned. She moved them back and forth, comparing dates, circling sentences with her finger, and reading several lines twice.

Then she reached the insurance letter.

Her expression changed.

“Elena, did your parents explain this page to you?”

“They said the treatment would use Caleb’s college savings.”

“That isn’t what this says.”

I stared at her.

Ruth turned the letter toward me and pointed to a paragraph near the center.

The insurance company had authorized most of the recommended care. My parents would still be responsible for a significant deductible and several related expenses, but the total was far lower than the number my mother had allowed me to glimpse.

The larger number at the bottom was the clinic’s full estimated charge before insurance.

My mother’s finger had covered the approved portion.

For several seconds, I could hear nothing except the car’s heater.

“They showed me the biggest number,” I said.

Ruth’s face became very still.

“Yes.”

“Why?”

“I don’t know yet.”

She picked up her phone.

My hand closed around her wrist before she could dial.

“Please don’t call them.”

“I’m not calling them,” she said. “I’m calling the clinic.”

The clinic instructed Ruth to bring me in immediately for an evaluation and to bring all available documents. A nurse also told her that the hospital’s social-work department could help determine what legal authorization was required.

Ruth started the car.

During the drive, she kept one hand on the steering wheel and the other resting near the center console, close enough for me to reach if I needed it.

I did not reach for her.

Not yet.

At the hospital, everything happened quickly without feeling chaotic. A nurse brought us into a quiet room. A doctor reviewed my previous test results and asked questions in a patient voice. A social worker named Ms. Patel sat beside Ruth and took careful notes.

No one accused me of exaggerating.

No one asked why I had made the situation sound unpleasant.

When Ms. Patel asked whether my parents knew I needed continued care, I handed her the insurance letter.

She read it, then looked at Ruth.

“Did they provide a reason for refusing?”

Ruth waited for me to answer.

“They said my brother starts university next year,” I told her. “They said they made promises to him.”

Ms. Patel did not react dramatically. She simply wrote down my words.

That calm response mattered. It made the situation feel real instead of impossible.

By late morning, the hospital had contacted the appropriate family-services office. A caseworker arrived and interviewed me alone. Then she interviewed Ruth.

My parents finally noticed I was gone shortly after nine.

My father called seven times. My mother sent three messages.

The first said, “Come home so we can discuss this calmly.”

The second said, “You are creating a serious misunderstanding.”

The third said, “Think about how this will affect Caleb.”

Not one message asked whether I felt safe.

I showed the phone to the caseworker.

She photographed the messages and asked whether I wanted to respond.

“No,” I said.

For the first time in my life, refusing my mother felt less frightening than obeying her.

The hospital arranged for my immediate care while the legal questions were reviewed. Ruth signed every temporary form she was permitted to sign and asked questions whenever she did not understand something.

At noon, she realized she had left her wallet in the car.

At one, she spilled coffee across the front of her cardigan.

At two, she called the tutoring center where she worked and apologized for missing her afternoon students.

She was disorganized, worried, and completely unprepared.

She was also the most dependable adult I had ever known.

That evening, a family-court judge approved an emergency temporary arrangement allowing me to stay with Ruth while the case was investigated. The order also allowed the necessary medical decisions to move forward under professional supervision.

Ruth’s apartment had one bedroom.

She gave it to me.

“I can sleep on the couch,” she said.

“I can take the couch.”

“You are the guest.”

“For how long?”

The question escaped before I could stop it.

Ruth looked at me carefully.

“For as long as you need a safe place,” she answered.

Her bedroom was small, with pale yellow walls and stacks of tutoring books beside the dresser. She cleared two drawers for my clothes, placed fresh sheets on the bed, and showed me where she kept extra towels.

Then she made tomato soup and grilled-cheese sandwiches.

The bread burned slightly around the edges.

It was the best meal I had ever eaten.

My parents came to the apartment the next afternoon.

They did not warn us first.

My father knocked hard enough to make the picture frames shake. My mother stood behind him holding her purse and wearing the navy coat she reserved for meetings where she expected to be taken seriously.

Ruth opened the door but did not invite them inside.

“You took our daughter,” my father said.

“Elena called me,” Ruth replied. “She asked for help.”

“She is a minor.”

“She is also receiving the care her doctors recommended.”

My mother lowered her voice.

“This is a private family matter.”

“It stopped being private when Elena had to leave home to ask for basic support.”

From the hallway, I watched my mother’s expression harden.

Then she saw me.

“Elena, get your things.”

I did not move.

My father stepped closer to the doorway, but Ruth remained in front of him.

“There is a temporary court order,” she said. “You cannot take her.”

“This is absurd,” he replied. “We were evaluating our options.”

“You told me there were no options,” I said.

Both of them looked at me.

My mother recovered first.

“You were emotional. You misunderstood the conversation.”

“I understood the letter too.”

Her eyes shifted toward Ruth.

“What did you show her?”

“The authorization page,” Ruth said.

For the first time, my mother lost control of her expression.

It lasted less than a second, but I saw it.

So did Ruth.

My father looked confused.

“What authorization page?”

My mother turned toward him.

“Not here.”

Ruth folded her arms.

“That sounds like a conversation you should have had before telling a fifteen-year-old that her care would destroy her brother’s future.”

My father stared at my mother.

“You said the claim had been rejected.”

My mother’s posture changed.

“It was complicated.”

“It was approved,” I said. “Most of it was approved.”

My father’s face went pale.

He looked at the floor, then at Ruth, then back at his wife.

My mother’s voice sharpened.

“There were still costs. There are always costs. Someone had to be realistic.”

“You showed me the full amount before insurance,” I said.

“I was trying to help you understand the seriousness of the situation.”

“No. You were trying to make me stop asking.”

Silence filled the hallway.

My father did not defend her.

For years, I had imagined that if he ever learned the complete truth, he would immediately choose me. Instead, he stood motionless, looking less like a protector and more like a man calculating how much damage had already been done.

My mother lifted her chin.

“Caleb’s account is not unlimited.”

Ruth’s voice remained calm.

“Then you could have discussed payment plans. You could have contacted charities. You could have appealed for additional coverage. You could have asked this family for help. You could have done anything except place the burden on Elena.”

My mother looked at me.

“You have no idea what adulthood requires.”

“I know what childhood should not require,” I answered.

Her face tightened.

Behind her, footsteps sounded on the stairs.

Caleb appeared in the hallway.

He was still wearing the same dark hoodie he had worn at breakfast, and his hair looked as though he had repeatedly run his hands through it.

“Is it true?” he asked.

My parents turned.

“Caleb, go back to the car,” my mother said.

He ignored her and looked at me.

“Did they really tell you they couldn’t pay because of my college money?”

I nodded.

He looked physically unsteady, as though the hallway had shifted beneath him.

“I didn’t know.”

“I know.”

“No, you don’t understand. They told me you were staying with Ruth because you were angry about a medical appointment. Mom said you wanted attention.”

My mother stepped toward him.

“That is enough.”

Caleb moved away from her.

“Did you tell Elena I needed an apartment?”

My father spoke at last.

“Your mother and I were trying to protect both of your futures.”

Caleb laughed once, but there was no humor in it.

“You didn’t protect mine. You used it against her.”

My mother’s face turned rigid.

“Everything we have done has been for this family.”

“Then why does Elena look like she was never part of it?”

No one answered him.

Caleb reached into his pocket and placed a small silver key on the table beside Ruth’s door.

It was the key to the used car our parents had recently bought for him as an early graduation present.

“Sell it,” he said.

My mother stared at him.

“What?”

“Sell the car. Use the money for Elena.”

My throat tightened.

“Caleb, you don’t have to do that.”

“Yes, I do.”

“No,” Ruth said gently. “You do not. Elena’s care is not your responsibility either.”

Caleb looked at her.

“Then whose responsibility is it?”

Ruth did not take her eyes off our parents.

“The adults who were supposed to protect both of you.”

That was the moment the story my parents had built around themselves began to collapse.

They had always described Caleb as the child with promise and me as the child who required too much. They had treated his advantages as rewards for merit and my needs as evidence of weakness.

But standing in that narrow hallway, Caleb was the first person from my old home to offer something without being asked.

My parents left without me.

Caleb stayed.

Over the following weeks, the investigation continued. Documents were collected. Doctors provided statements. The insurance company confirmed the authorization date. Bank records showed that my parents had enough accessible savings to cover the immediate expenses without emptying Caleb’s education account.

They simply had not wanted to change their plans.

My mother insisted that she had believed waiting was reasonable. My father claimed he had relied on her interpretation of the insurance documents. Each tried to make the decision sound less deliberate than it had felt at the kitchen table.

The court did not require me to decide whether they were cruel people.

It only required the adults involved to decide where I would be safe and supported.

Temporary guardianship became longer-term guardianship.

I remained with Ruth.

The treatment was not easy, but I was surrounded by people who explained each step instead of hiding documents from me. Ruth attended every appointment with a notebook full of questions. She kept receipts in the wrong folders and occasionally arrived twenty minutes early because she was terrified of being late.

When she did not understand something, she admitted it.

That honesty made her more trustworthy than all my parents’ confidence ever had.

Caleb visited on weekends.

At first, our conversations were awkward. We had grown up in the same house without truly knowing each other. He apologized for not noticing how differently we were treated.

I told him he had been a child too.

“That feels like an excuse,” he said.

“Maybe,” I replied. “But it’s also true.”

He deferred university for one year, not because anyone asked him to, but because he no longer wanted his future used as proof that mine mattered less. He found a part-time job and moved into a small room near campus the following year rather than the expensive apartment our parents had planned.

Our relationship did not transform overnight.

Trust rarely does.

But he kept showing up.

My father sent letters. My mother sent carefully worded emails. Most of them focused on intention rather than impact.

They had never meant to frighten me.

They had believed they were making a responsible decision.

They hoped I would eventually understand how much pressure they had been under.

Ruth never told me whether to forgive them.

“You are allowed to read the letters,” she said. “You are allowed to ignore them. You are allowed to change your mind later. None of those choices make you ungrateful.”

That freedom was one of the greatest gifts she gave me.

A year after I left home, I returned to the family court for the final review of my guardianship arrangement.

My parents sat on one side of the room. Ruth sat beside me on the other.

My mother wore a gray suit. My father looked older than I remembered. Caleb sat in the back row by himself.

The judge asked me where I wanted to live.

“With Ruth,” I said.

My mother lowered her eyes.

My father stared straight ahead.

The judge asked whether I wanted continued contact with my parents.

“Only when I choose it,” I answered.

The order was approved.

Outside the courthouse, my father approached me alone.

“I should have read the letter myself,” he said.

“Yes.”

“I should have asked more questions.”

“Yes.”

He looked toward the courthouse doors.

“I thought your mother understood the paperwork.”

“You were sitting at the table too.”

His face tightened as though the truth had struck a place he had spent months protecting.

“I know.”

It was the first honest thing he had said to me.

My mother remained near the steps. She did not approach.

For many years, that was the last clear image I had of her: standing in a perfectly tailored suit, holding a leather purse with both hands, watching the daughter she had expected to return walk away beside the sister she had always dismissed.

I finished high school from Ruth’s apartment.

The yellow bedroom walls became covered with scholarship letters, appointment calendars, photographs, and handwritten notes. Ruth helped me apply to colleges even though she cried every time she imagined me moving away.

I studied public policy and later trained as a patient advocate. I learned how insurance appeals worked, how emergency guardianship petitions were filed, and how many families became overwhelmed by systems designed in language ordinary people could barely understand.

I also learned the difference between being overwhelmed and refusing to try.

Years later, I helped establish a small nonprofit that connected young patients and vulnerable families with legal aid, transportation, temporary housing, and financial counseling.

We called it Seventy-Three.

Ruth laughed when I suggested the name.

“That was everything you had,” she said.

“No,” I replied. “It was everything I thought I had.”

At the organization’s fifth-anniversary event, I stood behind a podium in a hotel conference room filled with doctors, social workers, attorneys, teachers, and former patients.

Caleb sat in the front row beside his wife. Ruth sat next to him wearing a new navy dress and the same worn canvas shoes she had owned the morning she came for me.

I had stopped trying to persuade her to replace them.

Near the back of the room, two familiar figures entered quietly.

My parents.

I had invited them after weeks of consideration. Not because the past had disappeared, and not because an invitation meant complete forgiveness.

I invited them because I wanted them to see what had grown from the decision they once believed would make me disappear quietly.

During my speech, I did not tell the entire story.

I did not need to.

I spoke about how a young person could appear difficult when she was actually frightened. I spoke about the importance of explaining options rather than using uncertainty as an excuse. I spoke about the adults who showed up before they felt prepared.

Then I looked at Ruth.

“One person answered the phone,” I said. “She did not have money, influence, or a perfect plan. She simply believed that helping me was more important than appearing ready.”

Ruth covered her mouth with one hand.

The room rose in applause.

Afterward, my father approached me near the exit.

He had changed more than I expected. His hair was almost completely gray, and the confidence that once filled our kitchen had softened into caution.

“We are proud of you,” he said.

I studied him.

“I’m proud of myself too.”

My mother stood beside him. For once, she had no prepared expression.

“I was wrong,” she said.

The words were quiet.

They were also direct.

No explanation followed. No reference to pressure, money, misunderstandings, or intentions.

Just the truth.

I had imagined that moment for years. In some versions, I delivered a perfect speech that left her speechless. In others, I walked away without answering.

When the moment finally arrived, I felt neither victory nor anger.

I felt distance.

“I needed you to know that then,” I said.

“I know.”

“You cannot change what happened.”

“I know that too.”

I glanced across the room at Ruth, who was showing Caleb’s wife an old photograph from my high-school graduation.

“What happens now?” my mother asked.

They were the same words I had spoken at the kitchen table when I was fifteen.

This time, I was the one with the power to answer.

“Now we move carefully,” I said. “You respect my boundaries. You stop rewriting the past. And you understand that reconciliation is not something you can demand because you finally regret your choices.”

My father nodded.

My mother looked as though she wanted to say more, but she stopped herself.

For the first time, silence did not make me feel invisible.

It made me feel in control.

They left together a few minutes later.

I did not follow them.

I returned to the conference room, where Ruth was waiting with two slices of cake balanced on one plate.

“You all right?” she asked.

“Yes.”

“Do you want to talk about it?”

“Not yet.”

She handed me a fork.

“Then eat before Caleb takes the rest.”

I laughed.

Years earlier, my parents had looked at an insurance estimate and decided my needs threatened the future they valued most. They believed that by refusing to change their plan, they were protecting the life they had built.

Instead, they lost the daughter who had spent fifteen years trying to earn a place in it.

But the story did not end with what they refused to give me.

It continued with the aunt who arrived in mismatched socks, the brother who finally learned to see me, the professionals who listened, and the frightened girl who made one phone call from a grocery-store bench.

My parents thought seventy-three dollars and one backpack were all I had when I walked away before dawn.

They were wrong.

I had evidence. I had a voice. I had one person willing to come when I called.

And, for the first time, I had chosen myself.

Report this article

Select a reason for reporting:

May you like

Inaccurate information Copyright violation Spam / advertisement Offensive content Other '; footer.hidden = true; overlay.hidden = false; document.body.style.overflow = 'hidden'; } function hideSection() { if (section) section.hidden = true; } function openModal() { if (alreadyReported) { showSuccess(); return; } overlay.hidden = false; document.body.style.overflow = 'hidden'; } function closeModal() { overlay.hidden = true; document.body.style.overflow = ''; footer.hidden = false; overlay.querySelectorAll('input[name="report_reason"]').forEach(function(r) { r.checked = false; }); document.getElementById('reportMessage').value = ''; errorBox.hidden = true; submitBtn.disabled = false; submitBtn.textContent = 'Submit report'; imageItems = []; imgGrid.innerHTML = ''; updateAttachBtn(); } btn.addEventListener('click', openModal); closeBtn.addEventListener('click', closeModal); cancelBtn.addEventListener('click', closeModal); overlay.addEventListener('click', function(e) { if (e.target === overlay) closeModal(); }); document.addEventListener('keydown', function(e) { if (!overlay.hidden && e.key === 'Escape') closeModal(); }); // --- Error helper --- function showError(msg) { errorBox.textContent = msg; errorBox.hidden = false; } // --- Submit --- submitBtn.addEventListener('click', function() { var selected = overlay.querySelector('input[name="report_reason"]:checked'); if (!selected) { showError('Please select a reason.'); return; } errorBox.hidden = true; submitBtn.disabled = true; var itemsToUpload = imageItems.filter(function(it) { return !it.uploadedUrl; }); if (itemsToUpload.length === 0) { doSubmit(selected.value); return; } submitBtn.textContent = 'Uploading…'; var done = 0, failed = 0; itemsToUpload.forEach(function(entry) { entry.statusEl.textContent = '…'; entry.statusEl.className = 'report-img-item__status'; entry.statusEl.hidden = false; resizeImage(entry.file, MAX_LONG_PX, function(resized) { uploadFile(resized, currentSlug, function(err, url) { done++; if (err) { failed++; entry.statusEl.textContent = 'Failed'; entry.statusEl.className = 'report-img-item__status err'; } else { entry.uploadedUrl = url; entry.statusEl.textContent = '✓'; entry.statusEl.className = 'report-img-item__status done'; } if (done === itemsToUpload.length) { if (failed > 0) { showError('Could not upload ' + failed + ' image(s). Remove the failed ones (red) or submit without them.' ); submitBtn.disabled = false; submitBtn.textContent = 'Submit report'; } else { doSubmit(selected.value); } } }); }); }); }); function doSubmit(reason) { submitBtn.textContent = 'Sending…'; var uploadedUrls = imageItems .map(function(it) { return it.uploadedUrl; }) .filter(Boolean); var payload = { reason: reason, message: document.getElementById('reportMessage').value.trim(), post_slug: currentSlug, post_url: window.location.href }; if (uploadedUrls.length) payload.image_urls = uploadedUrls; fetch('/api/post-report', { method: 'POST', headers: { 'Content-Type': 'application/json', 'X-Requested-With': 'XMLHttpRequest' }, body: JSON.stringify(payload) }) .then(function(r) { return r.json(); }) .then(function(data) { if (data && data.ok) { markReported(currentSlug); alreadyReported = true; bodyEl.innerHTML = '✓ Thank you for your report.'; footer.hidden = true; setTimeout(function() { closeModal(); footer.hidden = false; hideSection(); }, 2000); } else { showError((data && data.message) ? data.message : 'Something went wrong. Please try again.'); submitBtn.disabled = false; submitBtn.textContent = 'Submit report'; } }) .catch(function() { showError('Connection failed. Please try again.'); submitBtn.disabled = false; submitBtn.textContent = 'Submit report'; }); } })();

Comments 0

Posting as Guest

Other posts