dailycanvas
May 23, 2026

“There isn’t a seat for you here,” Amber said, laughing loudly enough for every one of the fifty guests to hear. 016

“There isn’t a seat for you here,” Amber said, laughing loudly enough for every one of the fifty guests to hear. 016

Posted July 31, 2026

“There isn’t a seat for you here,” Amber said, laughing loudly enough for every one of the fifty guests to hear. “Go eat in the bathroom. You’re used to serving people anyway.”
The private dining room fell silent.
I stood beside the anniversary table in an ivory-colored dress, holding the place card that had somehow vanished from my seat. Around me were white orchids, gold-edged plates, imported wine, live musicians, and a five-tier cake I had paid for.
Every single detail had been billed to the corporate account I had permitted my son, Steven, to use.
I looked directly at him.
“Steven?”

Preview


He glanced up from his phone for no more than a second.
Then he lowered his eyes again.
No defense. No apology. Not even the slightest sign of discomfort.
Amber placed one hand on the back of her chair and smiled as though she had just solved a minor seating issue.
“You belong behind the scenes, Margaret,” she added. “Cleaning. Fixing. Paying.”
A few of the guests laughed.
That one word changed everything.
Paying.
For fifteen years, I had covered Steven’s debts, financed his business ideas, repaired his credit, deposited twenty-five thousand dollars into his account every month, and allowed him to live in a luxury condo he proudly called his own.
I had paid for this celebration too.
Amber knew that much.
What she did not know was where the money actually came from.
I set the blank place card down on the table.
Then I picked up my purse and walked away.
No shouting. No crying. No warning.
Outside, the cool night air felt far cleaner than the room I had just left behind. Through the restaurant windows, I watched a server pour champagne while Amber leaned toward her friends, already turning my humiliation into a source of entertainment.
I called my attorney.
“Activate Plan B.”
He hesitated. “Tonight?”
“Tonight.”

PreviewPreview


“The buyers are still ready to close at two hundred million.”
“Accept the offer.”
“And Steven’s transfers?”
“Stop them at midnight.”
“The condo?”
“It remains under my control until the closing.”
His voice became more serious. “Once the sale is completed, several corporate privileges will end immediately.”
“I understand.”
I ended the call and placed one more.
The restaurant manager answered the phone himself.
“Mrs. Herrera, is everything satisfactory?”
“No,” I replied. “Remove my payment authorization from the anniversary celebration.”
He became silent.
“The unpaid balance is eighty-seven thousand dollars.”
“Then the hosts need to be informed.”
Inside, the dinner continued for another twenty minutes before the first card was declined.
Steven attempted to use the corporate card twice.
Then Amber tried her own.
The musicians stopped performing. Servers began taking away the unopened bottles of wine. The cake vendor refused to release the final display until the payment was verified.
My phone began ringing.
First Steven.
Then Amber.
Then Steven once more.
I ignored all three calls.
At 11:58 p.m., my lawyer emailed me the completed sale agreement. At midnight, the monthly transfer vanished from Steven’s account. At 12:03, the corporate card was permanently deactivated.
At 12:11, Amber left me a voicemail.

At 12:11 a.m., Amber left me a voicemail.

Her voice no longer carried the polished contempt she had used in the dining room.

It was sharp.

Breathless.

Almost panicked.

“Margaret, whatever childish point you’re trying to make, stop it now. Steven’s card isn’t working, the restaurant says you withdrew payment, and people are still here. This is humiliating. Call us back immediately.”

I listened to the message once.

Then deleted it.

At 12:14, Steven called again.

At 12:16, he sent a text.

Mom, please answer.

At 12:18:

This has gone too far.

At 12:21:

We need to talk.

I placed my phone facedown on the passenger seat and watched the city move beyond the windshield.

I was sitting in the back of a black car my attorney had arranged to take me home.

For the first time that evening, I felt tired.

Not hurt.

Not angry.

Tired.

There is a particular kind of exhaustion that comes from loving someone long after they have stopped respecting you.

It does not arrive all at once.

It builds quietly.

A bill here.

An excuse there.

A rescue.

A loan that is never repaid.

A cruel comment you pretend not to hear.

A birthday forgotten.

A Christmas invitation that somehow arrives after the expensive gifts have already been purchased.

Then one day, someone tells you to eat in a bathroom at an anniversary party you paid for.

And suddenly the exhaustion becomes clarity.

At 12:37, my attorney called.

“Margaret.”

“Yes, Daniel?”

“The sale is fully executed.”

I looked out the window.

“So it’s done.”

“It’s done.”

For thirty-eight years, Herrera Industrial Holdings had belonged to me.

Not inherited.

Built.

I had started with a leased warehouse, two delivery trucks, and a bookkeeping desk squeezed between shelves of machine parts.

My husband, Thomas, had believed in the company before anyone else did.

When he died, I was forty-two years old with a twelve-year-old son, thirty employees, and enough debt to make sleep feel irresponsible.

I kept going.

By fifty, we had operations in four states.

By sixty, twelve.

By sixty-seven, Herrera Industrial supplied logistics, components, and maintenance systems to some of the largest manufacturers in the country.

Steven liked telling people he came from “old industrial money.”

That always amused me.

There was nothing old about it.

Every dollar had fresh scars.

Daniel continued.

“The acquiring group will assume operational control Monday morning. Your retained investment portfolio is separate, as we discussed.”

“And Steven?”

“There is no executive protection attached to his position.”

I leaned back.

“Good.”

“He may be offered a transitional role.”

“Based on merit?”

“Entirely.”

I almost laughed.

Steven had spent years believing his title meant something.

Vice President of Strategic Development.

A beautiful title.

A corner office.

A driver when he wanted one.

Memberships.

Expense accounts.

Introductions.

What he did not know was that the board had stopped trusting him three years earlier.

His projects failed.

His projections were careless.

Twice, senior managers quietly repaired decisions that would have cost us millions.

He remained employed for one reason.

Me.

I had protected him.

Moved him sideways instead of downward.

Explained away errors.

Covered losses.

Called them “learning opportunities.”

I had confused love with insulation.

And insulation had prevented him from ever discovering whether he could stand on his own.

Daniel hesitated before continuing.

“There’s another matter.”

“What?”

“The condo.”

I knew which one.

The penthouse on West 61st Street.

Four bedrooms.

Private elevator.

River views.

Amber had redesigned it twice in six years.

She told everyone Steven bought it after his “first major corporate win.”

He had never bought anything.

The property was held by one of my personal real estate companies.

Steven paid no mortgage.

No rent.

No property tax.

He once complained to me that the building’s concierge service was “slipping.”

“What about it?”

“The purchase agreement includes the subsidiary that owns the unit.”

I closed my eyes.

Of course it did.

We had structured the sale that way deliberately.

“And the buyers want possession?”

“They’ve indicated they intend to liquidate non-operational residential assets.”

“When?”

“Not immediately. But likely within sixty days.”

I thought about Amber standing in the dining room.

Cleaning. Fixing. Paying.

She had been more honest than she realized.

“How soon does Steven learn?”

“Officially? Monday.”

“Let him.”

Daniel was quiet.

“Are you certain?”

I looked at my reflection in the dark window.

An older woman stared back.

Silver hair pinned neatly.

Ivory dress.

Pearl earrings Thomas gave me on our twentieth anniversary.

A face Steven had stopped looking at carefully years ago.

“Yes.”

This time, I was certain.

When I arrived home, there were seventeen missed calls.

At 1:06 a.m., someone began pounding on my front door.

I knew who it was before I checked the camera.

Steven.

Amber stood behind him in the same gold dress she had worn to the restaurant.

Her hair was still perfect.

Her face was not.

I opened the door but left the security chain latched.

Steven stared at me.

“Mom.”

“Good evening.”

“Open the door.”

“No.”

His expression changed.

“Are you serious?”

“Yes.”

Amber pushed closer.

“Margaret, we just spent two hours being treated like criminals because of you.”

“No.”

I kept my voice calm.

“You spent two hours being treated like people who owed eighty-seven thousand dollars.”

Amber’s mouth tightened.

“That was your event.”

“Your anniversary.”

“You offered to pay.”

“I authorized a corporate account to cover a family celebration.”

“And then withdrew it in the middle of dinner.”

“After you told me to eat in a bathroom.”

Steven rubbed both hands over his face.

“Can we not do this out here?”

“We are not doing anything.”

“Mom.”

He lowered his voice.

“You embarrassed me in front of everyone.”

That sentence removed the final trace of sympathy I had been trying to preserve.

“You watched your wife humiliate me in front of everyone.”

His jaw tightened.

“I didn’t hear everything.”

“You looked directly at me.”

“I was trying not to create a scene.”

I stared at him.

“You were trying not to inconvenience Amber.”

He looked away.

Behind him, Amber folded her arms.

“This is ridiculous. You’re acting like one stupid joke is worth destroying an entire evening.”

“One joke?”

She sighed.

“You know how I talk.”

“Yes.”

That was exactly the problem.

I had heard the jokes for years.

My dress was “sweet for someone my age.”

My home was “charming in a grandmother way.”

My old office was “cute.”

My hands were “surprisingly rough.”

At Thanksgiving, she once told a guest that I still liked to “feel useful” by helping the staff clear dishes.

In my own house.

I had smiled through all of it because Steven loved her.

At least I thought he did.

Now I wondered whether he simply loved the life the two of them performed together.

Steven gripped the iron railing outside my door.

“We need the card turned back on.”

“No.”

“The restaurant balance is still open.”

“That is your responsibility.”

“Eighty-seven thousand dollars?”

“You hosted fifty people with imported wine and live musicians.”

“You approved it!”

“Before I learned that my seat was in the bathroom.”

Amber stepped forward.

“Oh, for God’s sake, no one actually expected you to eat in the bathroom.”

I looked at her.

“Where was my seat?”

She said nothing.

“Where was it, Amber?”

Her eyes flickered.

“That’s not the point.”

“No. It is exactly the point.”

Steven exhaled sharply.

“Fine. She was wrong.”

Amber turned.

“Excuse me?”

He ignored her.

“She was wrong, Mom. I’m saying it. Okay? She shouldn’t have said that.”

I waited.

His voice hardened.

“But canceling my corporate card, stopping an event payment, and cutting off my monthly transfer is insane.”

There it was.

Not the apology.

The invoice.

“How did you know the transfer stopped?”

He froze.

Amber looked at him.

“The banking app.”

“At midnight?”

He said nothing.

I nodded slowly.

“You checked.”

“Because the card died.”

“And your first thought was to see whether your allowance still arrived.”

His face flushed.

“It’s not an allowance.”

“What would you call twenty-five thousand dollars every month?”

He straightened.

“Compensation.”

“For what?”

That wounded him more than I expected.

“I work for the company.”

“Yes.”

“I’m vice president.”

“Yes.”

“I bring value.”

I held his gaze.

“Do you?”

Silence.

Amber’s face changed.

She looked at Steven.

He looked at me.

“What is that supposed to mean?”

“Exactly what it sounds like.”

“Mom, don’t start acting like I haven’t helped build that company.”

I almost smiled.

“Build?”

“Yes.”

“You joined when you were thirty-two.”

“So?”

“The company had eleven hundred employees.”

“That doesn’t mean I didn’t contribute.”

“No. It means you did not build it.”

His nostrils flared.

“You always do this.”

“Do what?”

“Make everything about what you sacrificed.”

I felt something inside me go still.

For years, I had feared hearing that.

Now that it had arrived, it did not hurt.

It clarified.

“I never asked you to worship my sacrifices.”

“No, you just remind me that everything comes from you.”

“Because everything did.”

Amber scoffed.

“Oh, please.”

I looked at her.

“What would you like to discuss first? The condo? The monthly transfer? The anniversary party? The corporate expense account? The car? The club membership?”

She stopped.

Steven stared at me.

“You’re being cruel.”

“No.”

I leaned slightly closer to the gap in the door.

“I am being accurate.”

His voice dropped.

“Turn the card back on.”

“No.”

“At least cover the restaurant.”

“No.”

“You can afford it.”

That sentence made me smile.

“Yes.”

He frowned.

“What?”

“I can afford it.”

I let the words settle.

“I simply no longer choose to.”

Amber’s eyes narrowed.

“You’re doing this because of me.”

“No.”

I shook my head.

“I’m doing this because of him.”

Steven went still.

“Me?”

“Yes.”

“For fifteen years, every time life asked something difficult from you, I paid the question away.”

His face changed.

“I paid debts you created. I funded businesses you abandoned. I fixed your credit. I gave you a job after you failed twice on your own. I gave you a home you never bought. I gave you money every month so you could pretend your salary supported the life you wanted.”

Amber looked at him sharply.

“What does she mean, a home you never bought?”

Steven’s face went pale.

“Not now.”

I almost felt sorry for him.

Almost.

Amber stepped toward him.

“Steven.”

He looked away.

“The condo is held through the company.”

Her eyes widened.

“What?”

“It’s complicated.”

“No.”

I interrupted gently.

“It is not complicated.”

Both of them looked at me.

“The condo belongs to a subsidiary of Herrera Industrial Holdings.”

Amber stared.

“You said we owned it.”

Steven snapped.

“We live there.”

“That is not what I asked.”

He rubbed his forehead.

“Can we deal with this later?”

I spoke before Amber could.

“Actually, Monday would be a very good time.”

Steven looked at me.

“What happens Monday?”

I removed the chain.

For one brief second, hope flashed across his face because he thought I was letting them in.

Instead, I stepped onto the porch and closed the door behind me.

The night was cold.

Amber hugged her arms around herself.

Steven watched me carefully.

“What happens Monday?” he repeated.

“The new owners take control.”

Neither of them moved.

Amber frowned.

“New owners of what?”

I looked at my son.

He understood first.

His expression drained.

“No.”

“Yes.”

“No, you didn’t.”

“I did.”

“Mom.”

Amber looked between us.

“What is she talking about?”

Steven barely breathed.

“You sold the company?”

“Yes.”

Her mouth fell open.

Steven stared at me as if I had announced the death of someone.

“When?”

“Tonight.”

“You can’t.”

“It closed before midnight.”

“For how much?”

“Two hundred million.”

Amber went completely still.

The number seemed to change the temperature.

Steven stepped backward.

“You sold Herrera Industrial without telling me?”

“I owned Herrera Industrial.”

“I am your son.”

“That is a biological relationship, Steven. Not a shareholder agreement.”

His face twisted.

“You were going to leave it to me.”

“I considered it.”

“Considered?”

His voice rose.

“I have spent fifteen years there!”

“Yes.”

“Building my career!”

“Yes.”

“And now some strangers just own it?”

“The acquiring group owns it.”

“What happens to me?”

There it was.

Not the employees.

Not the company name.

Not the future of the business.

Him.

“I don’t know.”

He looked horrified.

“How can you not know?”

“Because your position is now subject to review.”

“I’m a vice president.”

“You are an employee.”

His face changed again.

Amber whispered, “What about the condo?”

I turned toward her.

“That subsidiary was included.”

She actually took a step closer.

“You sold our home?”

“I sold an asset.”

“It is our home.”

“For now.”

Her voice sharpened.

“What does that mean?”

“The buyers are evaluating residential holdings. Daniel believes they will likely sell the unit.”

Her mouth opened.

Then closed.

Steven looked sick.

“You knew this would happen.”

“Yes.”

“And you did it anyway.”

“Yes.”

“Because Amber made a joke?”

I stared at him for several seconds.

“No.”

My voice was almost gentle.

“I did it because you did nothing.”

That finally silenced him.

I continued.

“Amber showed me what she thinks of me. That was unpleasant.”

I looked directly at him.

“You showed me what you think of me.”

His face tightened.

“I didn’t say anything.”

“Exactly.”

The porch light illuminated the tears gathering in his eyes.

I had not seen Steven cry in years.

Once, that sight would have undone me.

I would have opened the door.

Made coffee.

Called Daniel.

Reversed something.

Fixed everything.

Instead, I waited.

Steven swallowed.

“So that’s it?”

“No.”

He looked up.

“What else?”

“Your monthly transfer is finished permanently.”

He laughed once in disbelief.

“Fine.”

“The vehicle allowance ends Monday.”

His expression changed.

“The club membership is linked to the corporate account.”

Amber looked at Steven.

“The Meridian Club?”

I nodded.

“The buyers may keep certain memberships for current executives.”

Steven stared.

“May?”

“Depending on who remains employed.”

Amber’s breathing became shallow.

“What about the anniversary balance?”

I looked at her.

“You invited the guests.”

“We thought Margaret was paying,” she said to Steven.

He snapped.

“She was.”

“No.”

I corrected him.

“I was paying until you both decided the person funding the celebration was unworthy of sitting at the table.”

Amber glared at me.

“You planned this.”

“No.”

“The sale was ready. The lawyer had Plan B. You planned something.”

She was not entirely wrong.

I had spent the previous year preparing to sell.

Not because of Steven.

Because I was seventy-two years old.

Because the company had become too large for me to control without sacrificing the rest of my life.

Because I wanted the twenty-eight hundred employees who depended on us to move under stronger institutional ownership rather than into the hands of a son who treated quarterly reports as inconveniences.

Daniel and I had created two plans.

Plan A preserved a significant executive path for Steven, provided he completed a leadership program, worked under an independent board, and accepted financial accountability.

Plan B sold cleanly.

No inheritance of control.

No guaranteed role.

No family exceptions.

I had hoped never to use it.

“I prepared options,” I said.

Steven’s eyes narrowed.

“What was Plan A?”

I said nothing.

“Mom.”

“It doesn’t matter now.”

His voice broke.

“What was Plan A?”

I looked at my son.

“You would have had a path to become chief operating officer within three years.”

Amber stared.

Steven looked stunned.

“What?”

“You would have worked under the incoming leadership group. Earned equity. Completed executive training. No more monthly payments from me. No more personal spending through the company.”

He took a breath.

“And then?”

“If you proved yourself, the board would have supported you.”

His eyes filled.

“And you threw that away tonight?”

“No.”

I shook my head.

“You did.”

He looked as though I had struck him.

I hated that part.

Not because the words were false.

Because they were true.

At 2:08 a.m., Steven and Amber finally left.

I watched them walk toward their car without touching each other.

The restaurant bill was resolved the next afternoon.

Steven borrowed against a personal investment account and paid most of it.

Amber covered the rest using money from an account I did not know she had.

That surprised Steven.

Apparently, she had been setting money aside privately for years.

He called me that evening.

Not to apologize.

To ask whether I knew.

I did not.

Three days later, the acquiring group formally removed him from his vice president position.

They did not fire him.

They offered him a role as regional operations manager.

Lower title.

Smaller office.

Forty percent less salary.

Real responsibilities.

He called it humiliating.

I called it employment.

He nearly quit.

For once, I did not advise him.

He accepted.

Amber was furious.

Their marriage began cracking almost immediately.

The condo was listed for sale six weeks later.

They moved into a rented townhouse outside the city.

Three bedrooms.

No private elevator.

No concierge.

No river view.

Their friends stopped visiting as often.

That part was predictable.

What surprised me was Steven.

At first, he hated everything.

The commute.

The smaller paycheck.

The new boss who did not care who his mother was.

The warehouse visits.

The early flights.

The performance reviews.

Then something changed.

Slowly.

He became good at his job.

Not brilliant.

Not extraordinary.

Good.

Reliable.

He stopped calling Daniel whenever a problem appeared.

He stopped asking me for introductions.

He stopped posting photographs from golf clubs and charity dinners.

A year after the anniversary disaster, he invited me to lunch.

Not at a private club.

At a small Italian restaurant near his office.

I arrived early.

A place card sat at the table.

MARGARET.

I stood looking at it longer than I should have.

Steven noticed.

“I thought it might be safer to make sure your seat didn’t disappear.”

I looked at him.

It was the first joke he had made about that night.

The first one that did not hurt.

I sat.

He looked older.

There were lines around his eyes I had never seen before.

“Amber and I are divorcing,” he said.

I was not surprised.

“I’m sorry.”

He shrugged.

“I think we were married to the life more than each other.”

That was more self-awareness than I expected.

He pushed a small envelope across the table.

Inside was a bank statement.

Twenty-five thousand dollars.

I frowned.

“What is this?”

“The first month.”

“Of what?”

“Everything.”

I looked at him.

He smiled faintly.

“You gave me twenty-five thousand dollars a month for fifteen years.”

“Steven—”

“I know I can never pay all of it back.”

“You don’t need to.”

“I do.”

He looked down at his hands.

“Not because you need the money.”

Then he looked at me.

“Because I need to become the kind of man who understands what it cost.”

I did not speak.

He continued.

“I used to think you paid because money meant nothing to you.”

My chest tightened.

“I never understood that you paid because I meant everything to you.”

That sentence nearly broke me.

He looked away.

“I’m sorry I made you small in a room you paid for.”

I felt tears rise.

Not from humiliation this time.

From something quieter.

“I’m sorry I taught you that I would always pay.”

He smiled sadly.

“You did.”

Then he shook his head.

“But I’m the one who learned the wrong lesson.”

We ate lunch.

No musicians.

No imported wine.

No orchids.

The bill was eighty-six dollars.

Steven paid.

When we stood to leave, he pulled out my chair.

A small gesture.

Almost nothing.

But sometimes almost nothing tells you everything.

People later called the sale of Herrera Industrial my revenge.

They were wrong.

I did not sell a two-hundred-million-dollar company because my daughter-in-law insulted me.

I sold it because I had finally understood that protecting my son from consequences had become another way of hurting him.

Amber told me I belonged behind the scenes.

Cleaning.

Fixing.

Paying.

She was right about one thing.

For years, I had been behind the scenes fixing every problem before Steven was forced to see it.

That night, I stopped.

And once I stepped out from behind the curtain, he had to learn something neither money nor privilege had ever taught him.

How to stand without me holding him up.

The strangest part was that losing the company did not destroy my son.

Losing the condo did not destroy him.

Losing the title did not destroy him.

What nearly destroyed him was realizing that for years he had confused access to my life with ownership of it.

He thought my company was his.

My money was his.

My generosity was his.

Even my dignity had become something he believed he could spend.

He was wrong.

A year after Amber told me to eat in a bathroom, Steven sat across from me in an ordinary restaurant and asked whether I would join him for dinner on my birthday.

“Where?” I asked.

He smiled.

“Somewhere cheap.”

I laughed.

“Then I’m definitely coming.”

He reached across the table and squeezed my hand.

And this time, when my son looked at me, he did not see the woman who paid.

He saw his mother.

That was worth more than the company.

More than the condo.

May you like

And far more than the eighty-seven-thousand-dollar dinner I never paid for.

Report this article

Select a reason for reporting:

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