PART 2: After my sister caused a serious medical emergency for me, my parents refused to call for help. They even blocked the door and hid my husband's phone to protect her M1

After my sister caused a serious medical emergency for me, my parents refused to call for help. They even blocked the door and hid my husband's phone to protect her. My husband eventually got me to the hospital, but the nightmare wasn't over. While I was still in the ICU, the police arrived with a shocking warrant engineered by my own family.
Chapter 1: The Family That Chose the Wrong Daughter
The living room of my childhood home in Chicago always felt like a courtroom where I was the one on trial.
The air carried the smell of my father’s expensive cigars and my mother’s lavender decorations trying to hide years of tension beneath the surface.
I sat on the old floral chair beside my husband, Ethan, who held my hand and quietly reminded me I wasn’t alone.
Across from us sat my younger sister, Claire, still living at home at twenty-six. My parents treated her like something fragile and precious, while I had spent my entire life being the responsible one—the person expected to absorb everyone else’s problems.
That was the role I had been given from birth.
The dependable daughter.
The one who forgave.
The one who stayed quiet.
I slipped my phone into my cardigan pocket and started a voice recording. I thought I was capturing a happy family moment.
I had no idea I was preserving evidence.
“We have something to share,” I announced.
Ethan smiled.
“We’re having a baby.”
The room went silent.
Instead of happiness, my mother immediately looked toward Claire.
My father frowned.
“You’re already twelve weeks along and you’re only telling us now?”
“We wanted to wait until everything was stable,” I explained.
Claire laughed.
“So that’s the big announcement?”
She walked closer, holding a cup of hot tea.
“You barely look pregnant. Are you sure this is real, or are you just looking for attention again?”
Her words were cruel, but I had heard worse from my family.
Then she looked at my stomach.
“It just looks like you’ve been eating too much lately.”
Ethan immediately stood up.
“Don’t talk to my wife like that.”
Claire didn’t step back.
Instead, she moved closer, caught her foot against the rug, and suddenly spilled the boiling tea directly onto me.
I screamed from the pain.
“Oh my God, I tripped!” she cried, pretending to panic.
But as everyone rushed around, I saw the truth in her eyes.
The fear was fake.
The cruelty was real.
She leaned closer and whispered:
“I wonder how quiet I could make this.”
Before I understood what she meant, she kicked me.
The impact sent me backward.
My vision blurred.
Then everything went dark.
PART 2: After my sister caused a serious medical emergency for me, my parents refused to call for help. They even blocked the door and hid my husband's phone to protect her M1
Chapter 2: The Warrant in the ICU
When I opened my eyes, the first thing I heard was my husband shouting.
Not the kind of shout that came from anger.
The kind that came from terror.
“Move away from the door, Richard!”
My father’s voice answered, low and sharp. “You are not taking her anywhere until we know exactly what happened.”
“She’s bleeding,” Ethan said. “She’s pregnant. She needs an ambulance.”
My mother was crying somewhere near the hallway, but even through the fog swallowing my mind, I could tell the tears were not for me.
“Claire didn’t mean it,” she kept saying. “It was an accident. It was just tea. Don’t ruin her life over this.”
I tried to move.
Pain answered everywhere.
My stomach cramped so violently that I couldn’t breathe. My skin burned where the tea had soaked through my dress and cardigan. Something warm slid down my thigh, and even half-conscious, I knew enough to be afraid of it.
“Ethan,” I whispered.
He heard me immediately.
His face appeared above mine, pale and shaking. One side of his shirt was torn near the collar. There was a red mark along his jaw.
“I’m here,” he said. “I’m getting you out.”
“My baby,” I choked.
His eyes filled, but he nodded. “I know. I know, sweetheart.”
Behind him, Claire stood near the mantel, holding both hands over her mouth like she was the victim in the room. Her eyes were wide, glassy, dramatic.
But when my gaze met hers, the mask slipped.
For less than a second, she smiled.
Then my father grabbed Ethan’s arm.
“You need to calm down before you make this worse,” Dad said.
Ethan shoved him off. “She is on the floor.”
“We’ll drive her if necessary,” my mother said quickly.
“No,” Ethan snapped. “You hid my phone.”
The room spun.
Hid his phone?
My father’s face hardened. “You were hysterical. You would have called the police.”
“Because your daughter kicked my pregnant wife.”
Claire gasped. “I tripped!”
“You whispered to her first.”
“I didn’t!”
“You did,” I breathed.
Everyone froze.
My mother turned toward me, horrified—not because I was hurt, but because I had spoken.
“She doesn’t know what she’s saying,” Mom said. “She hit her head.”
I wanted to tell them about the recording. I wanted to scream that my phone was still in my cardigan pocket, that every word had been captured from the moment I announced the pregnancy.
But fear held my mouth shut.
Not fear of Claire.
Fear of my parents realizing what they needed to destroy.
Ethan searched the room with frantic eyes. “Where is my phone?”
No one answered.
He looked down at me, then at the hallway window beside the front door. The curtains were drawn. My parents had blocked the door with my father’s body and my mother’s trembling performance. Claire had moved to stand near the side table, too close to my purse.
Ethan made a decision.
He lifted me.
Pain tore through me so violently that I screamed into his shoulder.
“I’m sorry,” he whispered. “I’m so sorry.”
My father stepped in front of him.
“You walk out that door and you are finished in this family.”
Ethan’s laugh was ugly and broken. “I was finished the moment you chose appearances over her life.”
Then he turned—not toward the front door, but toward the back of the house.
My mother shrieked. “Richard, stop him!”
Dad lunged.
Ethan twisted, taking the blow on his back while keeping my body shielded. He kicked open the kitchen door with enough force to crack the frame. Cold Chicago air rushed in, sharp as glass.
Claire screamed behind us, “She attacked me first!”
That sentence followed us into the night like a curse.
Ethan carried me barefoot across the back steps, through the frozen grass, past the garage and into the alley where his car was parked. He had left his keys in his coat pocket. His hands shook so badly he dropped them once, then twice.
“Stay with me,” he begged.
“I’m scared,” I whispered.
“I know.”
“My phone.”
“What?”
“My cardigan. Recording.”
His eyes flashed.
He understood.
He buckled me into the passenger seat, slammed the door, and ran around to the driver’s side. As the engine roared alive, the back door of the house burst open.
My father came out first.
Claire stood behind him, wrapped in my mother’s arms, already crying like someone had died.
Ethan reversed hard.
My father slapped both palms against the hood of the car, roaring something I couldn’t hear.
Ethan didn’t stop.
He drove.
The hospital was twelve minutes away.
It felt like years.
I drifted in and out. Sirens appeared behind us at some point, but Ethan didn’t pull over until we reached the emergency entrance. He jumped from the car screaming for help, and suddenly the night filled with nurses, wheels, white lights, questions.
“How many weeks pregnant?”
“Twelve.”
“Blunt trauma?”
“Yes.”
“Burns?”
“Yes, hot liquid.”
“Loss of consciousness?”
“Yes.”
“Who did this?”
Ethan looked at me.
I couldn’t speak.
So he said it.
“Her sister.”
The world narrowed to a ceiling of moving lights.
Someone cut away my clothes. Someone pressed monitors to my chest. Someone held my hand and told me to breathe. A doctor asked me whether I felt safe at home, and I laughed because pain had made the question absurd.
Home had never been safe.
Not really.
Not once Claire learned that tears could become weapons.
I heard Ethan arguing outside a curtain. I heard a police officer asking questions. I heard my mother’s voice on the phone, high and frantic, saying, “This is all a misunderstanding. Our son-in-law has a temper.”
Then a nurse leaned over me and said, “Mrs. Walker, we’re taking you upstairs.”
“Baby?” I asked.
Her expression changed.
Not enough for a stranger to notice.
Enough for a mother to know.
“We’re going to do everything we can.”
That was the last thing I remembered before the ICU.
When I woke again, machines breathed around me.
Every beep sounded like a countdown.
My burns were bandaged. My head ached beneath a tight wrap. My abdomen felt like a battlefield after everyone had left. Ethan was asleep in a chair beside my bed, his hand still gripping mine, his body folded forward like he had collapsed mid-prayer.
There was dried blood on his sleeve.
For one impossible second, I thought everything might be over.
Then I saw the uniform outside my glass door.
A police officer stood in the hallway talking to a doctor. His expression was not sympathetic. Beside him stood another officer holding a folder.
Ethan woke the moment my fingers moved.
“Hey,” he whispered. “You’re awake.”
“What happened?”
His face crumpled, then he forced himself back together. “You’re stable. The baby’s heartbeat came back strong after they treated you. They’re monitoring you constantly.”
I closed my eyes as tears spilled sideways into my hair.
Alive.
The baby was alive.
For that moment, it was enough.
Then the door opened.
The officer stepped inside.
“Mr. Walker?”
Ethan straightened. “Yes?”
“I’m Detective Harris. This is Officer Nguyen. We need to speak with you.”
Ethan’s body went still.
I knew that stillness. It was the way he became calm when the world became dangerous.
“About what?” he asked.
Detective Harris glanced at me. “Mrs. Walker, we understand you’ve been through a traumatic event. We’ll try to be brief.”
A cold thread moved through my chest.
The officer holding the folder opened it.
“We have a warrant for Mr. Walker’s arrest.”
The machines beside me began to beep faster.
“No,” I said.
Ethan rose slowly. “For what?”
Detective Harris kept his voice even. “Aggravated assault, unlawful restraint, intimidation of a witness, and suspected domestic violence resulting in injury.”
For a moment, no one moved.
Then I laughed.
It sounded wrong. Thin and cracked. Almost inhuman.
“You think he did this?”
“Ma’am—”
“My sister kicked me.”
Detective Harris looked almost uncomfortable. “Your family has provided statements indicating that your husband became violent after an argument regarding the pregnancy announcement. They claim he assaulted your sister, threatened your parents, prevented them from calling medical help, and then removed you from the residence against their wishes.”
Ethan stared at him. “That’s insane.”
Officer Nguyen said, “We also received photographs of injuries on Claire Miller.”
Claire Miller.
My sister had gone back to our maiden name after her divorce, but somehow hearing it spoken formally made the nightmare feel legal.
“What injuries?” I demanded.
“A bruised wrist. A facial abrasion. She alleges Mr. Walker struck her when she tried to help you.”
“He never touched her.”
Detective Harris shifted. “Mrs. Walker, your mother stated you were unconscious and unable to observe most of what occurred.”
“My mother lied.”
“Your father gave the same account.”
“My father lied too.”
The detective’s face closed slightly, not in cruelty, but in procedure. Two parents. One sister. A clean story. A pregnant woman with a concussion and burns. A husband with a mark on his jaw and blood on his sleeve.
They had built the perfect cage around him.
Ethan looked at me, not afraid for himself.
Afraid for me.
“It’s okay,” he said.
“No,” I snapped, trying to sit up.
Pain punished me instantly. My abdomen clenched. The monitor screamed faster.
A nurse rushed in. “She cannot be stressed like this.”
Detective Harris held up one hand. “We understand, but we have a signed warrant.”
“You can’t take him,” I cried.
The nurse stepped between them and me. “Mrs. Walker, breathe.”
Ethan leaned over me, his eyes shining.
“Listen to me,” he whispered. “You and the baby are what matter. I’ll be fine.”
“You won’t,” I said. “They planned this.”
His expression changed.
He looked toward my cardigan, folded in a plastic patient belongings bag on the counter.
The phone.
My phone.
I saw the realization hit him at the same moment it hit me.
But Officer Nguyen had already followed his gaze.
“What’s in the bag?” she asked.
“Personal belongings,” the nurse said.
Detective Harris looked at Ethan. “Mr. Walker, turn around.”
“No,” I said again, but my voice had lost strength.
Ethan kissed my forehead.
Then he put his hands behind his back.
The sound of handcuffs closing around his wrists was worse than any scream.
They led him out while my body lay useless beneath tubes and wires. I watched him disappear through the ICU doors, and something old inside me finally broke.
Not my faith in my family.
That had died years ago.
What broke was the obedient daughter who still believed that telling the truth would be enough.
Because my parents had not just abandoned me.
They had declared war.
The next few hours passed in pieces.
A doctor told me stress could trigger complications.
A nurse named Maribel adjusted my IV and whispered, “Do you have anyone safe we can call?”
I almost said no.
Then I remembered Ethan’s older brother, Caleb.
“His brother,” I said. “Caleb Walker.”
She took the number from Ethan’s emergency contact list in my chart.
Within forty minutes, Caleb arrived like a storm in a wool coat.
He was taller than Ethan, darker-eyed, a criminal defense attorney with the kind of presence that made hospital security step aside without understanding why. He came into my room, saw the empty chair beside my bed, and his jaw tightened.
“Where’s my brother?”
“They arrested him.”
“For what?”
I told him.
His face went motionless.
That was worse than anger.
“Where is your phone?”
“My cardigan pocket. In the bag.”
Caleb crossed to the counter, but the nurse stopped him.
“Evidence protocols,” she said gently. “Given what happened, we have to document chain of custody.”
Caleb exhaled through his nose, then nodded. “Good. Very good. Who has accessed it?”
“No one since intake,” Maribel said. “I sealed the bag myself.”
I looked at her.
She met my eyes.
“I heard enough in the ER to know something was wrong,” she said quietly.
Caleb turned to me. “Did you record?”
I nodded.
“From before the announcement?”
“Yes.”
“Did it continue through the attack?”
“I think so. It was in my pocket.”
Caleb’s expression sharpened. “That may save Ethan.”
But the way he said may made my blood go cold.
He stepped into the hallway and began making calls.
Through the glass, I watched him transform from brother into lawyer. His voice was low and controlled. He wrote notes on a legal pad. He requested names. Badge numbers. Hospital reports. Copies of photographs. The warrant affidavit.
Then he returned.
“Your parents filed their complaint before Ethan reached the hospital,” he said.
I stared at him. “How?”
“They called a family friend.”
I already knew the name before he said it.
“Deputy Chief Nolan.”
My father’s golf partner.
The man who had eaten Thanksgiving dinner at our house three years in a row while Claire flirted with his married son.
Caleb continued, “The warrant application included sworn statements from all three of them. Your mother claimed Ethan had been isolating you for months. Your father claimed Ethan attacked him and threatened to kill Claire. Claire claimed you tried to leave with your parents for safety, but Ethan dragged you out.”
The ceiling seemed to tilt.
“They made me the prisoner,” I whispered.
“Yes.”
“They made him the monster.”
Caleb looked at me carefully. “And they may not stop there.”
“What does that mean?”
He hesitated.
I hated that hesitation.
“Child protective services received an anonymous report tonight,” he said.
My hands went numb.
“No.”
“It alleges Ethan caused injuries to you while you were pregnant and that you are too psychologically unstable to protect the baby.”
The monitor began to scream again.
Maribel rushed in.
Caleb stepped back. “I’m sorry. I needed you to know.”
My parents had not only tried to keep me from the hospital.
They were already reaching for my unborn child.
The next morning, Detective Harris returned.
This time, Caleb was present.
So was a hospital legal representative, Maribel, and a quiet woman from the domestic violence advocacy team who introduced herself as Nora. The ICU room felt too small for all of them, but I had never been so grateful for witnesses.
Detective Harris looked more tired than before.
“I understand you have evidence,” he said.
Caleb held up one hand. “Before anything is played, we need confirmation that Mrs. Walker is being treated as a victim and witness, not a suspect.”
“She is not under arrest.”
“That isn’t what I asked.”
The detective’s mouth tightened. “At this time, she is considered a victim and witness.”
“At this time,” Caleb repeated.
Detective Harris did not answer.
Maribel brought the sealed belongings bag. The hospital legal representative documented the seal number, the time, the names present. My phone was removed with gloves. My hands shook too badly to unlock it, so I gave the code to Caleb.
For one terrible moment, I feared the recording had failed.
Then my own voice filled the room.
“We have something to share.”
Ethan’s voice, warm and hopeful.
“We’re having a baby.”
The silence after it seemed louder now.
Then my father: “You’re already twelve weeks along and you’re only telling us now?”
Claire’s laugh.
“So that’s the big announcement?”
Every sentence returned like a ghost.
“You barely look pregnant. Are you sure this is real, or are you just looking for attention again?”
Ethan’s chair scraped.
“Don’t talk to my wife like that.”
Then the sound of footsteps. A cup shifting. My scream.
Claire crying, “Oh my God, I tripped!”
Chaos.
My mother yelling for towels.
Ethan saying, “Move, let me see her.”
Then, faint but clear, Claire’s whisper:
“I wonder how quiet I could make this.”
The room went silent.
Then came the impact.
My cry cut through the recording so sharply that even Detective Harris flinched.
Ethan shouted my name.
My mother screamed, “Claire!”
Not my name.
Claire’s.
Then my father: “Nobody call anyone yet.”
Ethan: “She needs an ambulance!”
My father: “Give me your phone.”
A scuffle.
Ethan: “What are you doing?”
My mother: “Richard, take it! He’ll call the police!”
The recording kept going.
It captured everything.
My parents blocking the door.
Claire sobbing too loudly.
Ethan begging them to move.
My mother saying captured everything.
My parents, “We cannot let this ruin your sister.”
My father warning him that walking out would finish him in the family.
And finally, Claire’s last scream as Ethan carried me away:
“She attacked me first!”
When the recording ended, no one spoke.
Detective Harris looked at Officer Nguyen, then at Caleb.
“I need a copy of that.”
“You’ll get one,” Caleb said. “After we preserve the original and file a motion.”
The detective nodded slowly. His face had changed. Not softened exactly. Corrected.
“I’ll contact the State’s Attorney,” he said.
“And release my brother?”
“That decision isn’t mine alone.”
Caleb stepped closer. “Then make it someone’s decision quickly.”
Harris looked at me. “Mrs. Walker, I owe you an apology for how this began.”
I wanted to accept it.
I wanted to be the gracious woman my parents trained me to be.
Instead, I said, “Apologize by arresting the people who did this.”
He left without promising anything.
By evening, Ethan was released.
He came back to the ICU with red marks around his wrists and exhaustion carved beneath his eyes. The moment he stepped through the door, I broke.
He reached me in two strides and pressed his face to my hand.
“I’m here,” he said.
This time, I believed him.
For about ten minutes.
Then Caleb entered behind him, holding a tablet.
“You both need to see this.”
On the screen was a social media post from Claire.
A photo of her bruised wrist.
A tear-streaked selfie.
And the caption:
I never thought my own sister would choose an abusive man over her family. Please pray for us. We are terrified for her and the baby.
There were hundreds of comments.
Poor Claire.
Her sister is brainwashed.
Someone needs to save that baby.
My stomach turned.
“She posted this after hearing about the recording?” I asked.
Caleb’s face was grim. “No. She scheduled it last night.”
Ethan looked up. “Scheduled?”
“She prepared it before the police even had the warrant.”
That was when the surprise struck—not that Claire had lied, but that she had planned the lie before the attack.
Caleb swiped to another screen.
“I had a forensic consultant look at publicly visible metadata before she deleted anything. There are signs she drafted several posts days ago. One mentions you being unstable. One mentions Ethan being controlling. One asks people to come forward if they’ve seen signs of abuse.”
My mouth went dry.
Days ago.
Before the announcement.
Before the tea.
Before the kick.
“She knew,” I whispered.
Ethan looked at me. “Knew what?”
I placed both hands over my stomach.
“She knew I was pregnant before we told them.”
The room seemed to shrink.
Caleb’s eyes narrowed. “How?”
I thought of my mother’s face when I made the announcement.
Not surprised.
Not happy.
Afraid.
Afraid of Claire’s reaction.
“My medical portal,” I said slowly. “My mother still had access from when I was in college. I never removed her.”
Ethan swore under his breath.
Caleb was already moving. “I’ll subpoena access logs.”
But before he reached the door, my hospital phone rang.
Unknown number.
Everyone froze.
Nora, the advocate, gently answered and put it on speaker.
For three seconds, there was only breathing.
Then my mother’s voice entered the room, soft and strange.
“Anna?”
I closed my eyes.
Caleb signaled for silence and began recording from his own phone.
“Mom,” I said.
“Oh, thank God.” She sounded relieved. Almost loving. “You need to listen carefully. Things have gotten out of hand.”
“You mean Claire almost killing my baby?”
A sharp inhale. “Don’t say that.”
“Why?”
“Because people are listening.”
My blood chilled.
“Are you threatening me from a hospital line?”
“I am trying to protect you,” she hissed. “You don’t understand what your sister will do if she feels cornered.”
Ethan’s hand tightened around mine.
My mother began to cry again, but now the tears sounded different. Realer. Frightened.
“Your father thinks we can still fix this. Claire has always been difficult, but she is not well, Anna. She says things when she is upset.”
“She kicked me.”
“I know.”
The room went completely still.
Caleb’s eyes snapped to mine.
My mother kept talking, voice breaking faster now, as if truth had finally cracked through the plaster.
“I saw it. I saw her do it. But your father said if we called an ambulance and police came, Claire would go to prison. He said you were stronger. He said you had Ethan. Claire has no one.”
I couldn’t breathe.
All my life, that had been the math.
Claire had no one, even when she had everyone.
I was strong, so I could be sacrificed.
“Mom,” I said, “why did you lie?”
Silence.
Then she whispered, “Because she told us she would tell everyone what happened in Michigan.”
Caleb went rigid.
Ethan frowned. “Michigan?”
I had no idea what she meant.
“What happened in Michigan?” I asked.
My mother started sobbing. “I can’t. I shouldn’t have called.”
“Mom.”
“She has proof,” my mother said. “Your father kept it hidden for years, and now Claire found it. If she releases it, everything is over.”
“What proof?”
Before she could answer, another voice came on the line.
Claire.
Sweet. Calm. Smiling through the phone.
“Hi, Anna.”
My skin crawled.
My mother whimpered in the background.
Claire continued, “I wondered how long it would take you to turn everyone against each other.”
“You planned this,” I said.
She laughed softly. “You really should have taken better care of your passwords.”
Caleb mouthed one word.
Portal.
Claire had accessed my medical records.
“And Mom’s right,” she said. “There is a Michigan problem. But don’t worry. You’ll understand soon.”
The line clicked dead.
No one moved.
Then Caleb’s tablet chimed.
Once.
Twice.
Three times.
He looked down.
The color drained from his face.
“What is it?” Ethan asked.
Caleb turned the screen toward us.
An email had arrived from an anonymous address.
Subject line:
FOR ANNA — ASK YOUR FATHER ABOUT THE LAKE.
Attached was a photograph, grainy and old, taken at night.
My father stood beside a black car near dark water.
My mother was crying in the background.
And between them, wrapped in a blanket, was a little girl I had never seen before.
On the back of the scanned photo, someone had written four words in my father’s handwriting:
Claire must never know.
...To know what happened next, please type “YES” and like for more.
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