dailycanvas
Jul 18, 2026

My Wife Forced My Mother to Eat From the Floor. Then the General Found the Adoption Papers 050

My Wife Forced My Mother to Eat From the Floor. Then the General Found the Adoption Papers 050

Posted August 1, 2026

Preview

Daniel Vance would later describe that day as the moment the room divided into two versions of the truth. In one version, Vanessa was confident, admired, and fully in control. In the other, the version Daniel Vance could finally see, the confidence depended on secrets, access, money, and the certainty that no one would resist. When “Eat it” was spoken, several people smiled nervously. Daniel Vance did not. A boundary had been crossed in public, and once cruelty became public, it could no longer be dismissed as a misunderstanding behind closed doors.

The setting made the cruelty seem even sharper. A Virginia estate dining room on Christmas Eve, with glowing tree, white lights, hidden speakers, polished marble floor, heavy oak front door, three dropped gift boxes, dining table, bowl of spoiled food, and enough space for a uniformed general to intervene. Warm holiday beauty contrasts with the bitter chemical smell and cruelty. Everything had been arranged to communicate comfort, status, or celebration. Nothing in the room suggested danger. That was part of the problem. Harm rarely arrived wearing the face people expected. It arrived with polished clothes, practiced smiles, family photographs, and explanations that sounded reasonable until someone compared them with the facts. Daniel Vance, the general, had arrived as an adult man in Army dress uniform with general officer stars, snow on shoulders, strong protective build, shocked controlled face. Vanessa carried adult wife in fitted red cocktail dress and heels, manicured hands, cornered aggressive expression. To a stranger, the contrast might have looked like confidence beside hesitation. To those who knew the history, it was control beside restraint.

For years, Daniel Vance had been the person who solved problems before anyone else noticed them. Bills were handled, birthdays remembered, illnesses managed, and apologies offered even when they were not deserved. Vanessa had benefited from that steadiness and gradually begun to treat it as an unlimited resource. A favor became an expectation. An expectation became a rule. Each time Daniel Vance objected, someone invoked family loyalty, gratitude, or the need to keep peace. The result was a system in which Daniel Vance carried responsibility while Vanessa claimed authority. Margaret had noticed pieces of it, but like many people close to a controlling family, Margaret had not understood the full pattern until the consequences became impossible to ignore.

The first warnings had been small enough to excuse. There were comments delivered as jokes, private decisions announced as completed plans, belongings moved without permission, and money discussed as though the person who earned or owned it had no voice. Daniel Vance remembered the pauses after each incident. Those pauses had been opportunities for someone to say that the behavior was wrong. Instead, the family usually changed the subject. That silence taught Vanessa a dangerous lesson. It suggested that charm could erase disrespect and that appearances mattered more than the person absorbing the damage.

Daniel Vance did not remain because of ignorance. Leaving any family arrangement is more complicated than outsiders imagine. There were relationships worth saving, memories that still felt warm, and vulnerable people who might be caught in the middle. There were also practical ties, shared accounts, property, medical needs, work obligations, and promises made to people who were no longer alive. Daniel Vance kept hoping that one honest conversation would restore balance. Instead, every compromise was interpreted as permission to demand more. By the week of the confrontation, even ordinary interactions carried the tension of a contract no one had signed but everyone was expected to obey.

The day began with details that later returned in perfect clarity. Daniel Vance noticed the quality of the light, the placement of a bag or glass, the sound of footsteps in the hall, and the way Vanessa checked who was watching before speaking. the rest of the family moved through the space as though the outcome had already been decided. Daniel Vance felt the old instinct to smooth the edges of the gathering, to make everyone comfortable, and then deliberately let that instinct pass. Comfort had protected the wrong people for too long.

Before the central scene, Margaret tried to speak privately with Daniel Vance. The warning was cautious because fear had shaped the language of the household. Margaret did not say that Vanessa was dangerous or dishonest. Instead, Margaret asked whether important documents were safe, whether the phone was charged, and whether someone outside the family knew where Daniel Vance was. Those questions confirmed what Daniel Vance had already begun to suspect. The conflict was no longer about manners. It involved access, leverage, and a plan designed to leave Daniel Vance with fewer choices.

When everyone finally gathered, Vanessa performed confidence for the room. The performance depended on an audience. Every glance, laugh, and interruption was meant to reduce Daniel Vance to a role rather than a person. Daniel Vance watched the reactions instead of the speaker. Some faces showed discomfort. Others showed relief that someone else was the target. A few looked entertained. That knowledge hurt, but it also clarified who could be trusted after the day was over.

Then the scene unfolded. Vanessa grips Margaret's jaw and forces the bowl toward her mouth, shouting, “Eat it!” Daniel Vance enters, drops the gift boxes, knocks the bowl away, and kneels beside his mother. He asks, “Did she make you eat this?” Margaret struggles to answer while Vanessa backs toward the tree. The words and movements happened quickly, but Daniel Vance experienced them with unusual precision. A hand tightened. A chair scraped. Someone inhaled sharply and then pretended not to have noticed. The humiliation was meant to force an immediate emotional response. Vanessa needed tears, anger, or pleading because any of those could be described later as instability. Daniel Vance offered none of them. The stillness confused the people who had prepared for a spectacle.

Inside that stillness, something changed. Daniel Vance stopped asking why Vanessa could behave this way and began asking what the behavior revealed. It revealed confidence in a hidden advantage. It revealed that Vanessa expected access to remain open and consequences to remain private. It revealed that at least one other person knew more than had been admitted. Most importantly, it revealed a deadline. Whatever plan existed was already moving. Daniel Vance could not wait for another apology that would arrive only after the damage was complete.

Daniel Vance left the immediate scene without explaining the next step. That decision was interpreted as defeat. Behind Daniel Vance, voices resumed, softer at first and then triumphant. Vanessa began rewriting what had happened before the witnesses had even dispersed. The new version made the aggression sound necessary and the humiliation sound deserved. Daniel Vance expected that. For years, the family had allowed memory to be negotiated by the loudest person. This time, memory had support. There were timestamps, photographs, recordings, receipts, and people outside the family who had no reason to participate in the lie.

The first call went to Margaret. The second went to a military attorney and an investigator outside the local chain of command. Daniel Vance described only observable facts, resisting the urge to explain motives. The adviser on the line asked practical questions: Who had access? What had been signed? Where were the original records? Was anyone in immediate danger? Those questions transformed panic into a list. Within an hour, passwords changed, copies were secured, and a written timeline began. Daniel Vance discovered that action could be quieter than fear and far more powerful.

The evidence did not appear in one dramatic bundle. It accumulated. Medical charts, access logs, service records, recordings, and sworn statements began to form a pattern. One record showed when the plan started. Another contradicted a story Vanessa had repeated for months. A message revealed who had been recruited to pressure Daniel Vance. A payment connected the private cruelty to a larger financial or personal motive. The most painful discovery was not the scheme itself. It was the number of moments when someone close to the family could have stopped it and chose convenience instead.

Margaret became essential during those hours. Margaret had seen enough to understand that neutrality was no longer moral. Margaret provided a missing detail, preserved a message, or confirmed a time that Vanessa later tried to dispute. The contribution was not heroic in the theatrical sense. It was simply honest, and honesty had become rare enough to feel extraordinary. Daniel Vance thanked Margaret once, then returned to the work. There would be time for emotion after everyone was safe.

By evening, Vanessa sensed that the expected surrender had not arrived. Calls began. The first messages sounded concerned. The next sounded irritated. Then came accusations, threats disguised as family advice, and reminders of everything Daniel Vance supposedly owed. Vanessa recruited relatives to repeat the same phrases, hoping volume would create truth. Daniel Vance answered only one message: communication would continue in writing. That single boundary removed the stage on which Vanessa had always performed best.

The following hours were marked by practical decisions. Military investigators, hospital administrators, and the inspector general received the information they needed. Access was reviewed. Original documents were placed beyond reach. Where safety was involved, medical professionals documented what family members had minimized. Where money or property was involved, institutions were warned not to accept sudden instructions. Where a ceremony or public event was involved, staff were told that private pressure could no longer determine what happened next. Each step closed a door Vanessa had assumed would remain open.

Daniel Vance did not sleep much that night. Memory moved backward through years of compromises, showing how the final confrontation had been built from smaller permissions. There had been chances to leave sooner, but regret was less useful than clarity. Daniel Vance wrote down a promise: no future relationship would require pretending not to see cruelty. It was a simple sentence, yet writing it felt like recovering ownership of a life that had been negotiated away one concession at a time.

Preview

The next confrontation began because Vanessa believed the old leverage still worked. Vanessa points at Margaret and spits out the secret: “Ask who left you in a box.” Daniel Vance looks from his wife to the woman who raised him. Vanessa adds, “The adoption papers are in her safe.” Margaret tries to speak, then suddenly begins choking. Daniel Vance catches her and calls for help while Vanessa's triumphant expression turns uncertain. This time, the room did not respond as it had before. People looked toward the documents, the witnesses, or the authority standing beside Daniel Vance. The sentence “The adoption papers are in her safe” did not sound like a dramatic threat. It sounded like the final piece of a fact pattern. Vanessa searched the faces nearby for the usual rescue and found hesitation instead.

The truth behind the confrontation was larger than one insult. Vanessa had built confidence on the assumption that Daniel Vance's resources, loyalty, or silence were permanent. They were not. The house, account, position, evidence, or legal authority at the center of the dispute had a history Vanessa had never bothered to learn. Daniel Vance had protected that history because exposing it earlier would have embarrassed people who were still considered family. That protection ended the moment it was used to justify harm.

The presence of military authority did not make the confrontation louder. It made it procedural. Names, times, ranks, and orders were recorded. No one was permitted to hide behind family status or professional courtesy. The chain of command that had once seemed intimidating became a route for accountability when the matter reached people outside the compromised circle. Daniel Vance understood that discipline meant more than obedience. It also meant refusing unlawful, abusive, or deceptive conduct.

Vanessa's composure failed in stages. First came denial. Then came an attempt to blame Daniel Vance. When that did not work, Vanessa appealed to the audience, invoking loyalty and private history. Finally, there was bargaining. None of it changed the records. Daniel Vance did not celebrate the collapse. Watching someone lose power can be satisfying from a distance, but up close it often looks frightened and ordinary. The important victory was not humiliation. It was the end of access to the person who had been harmed.

Rank could not erase the evidence. Formal inquiries began, orders were suspended, and the people who had relied on intimidation discovered that procedure could also protect the vulnerable. Statements were taken separately. Devices or documents were preserved. People who had laughed or remained silent were asked what they had seen, and several discovered that claiming not to remember was less convincing when recordings existed. Daniel Vance gave one complete account and refused to be drawn into arguments in hallways or parking lots. The facts could now speak in places where charm carried less weight.

The days afterward were not easy. Public confrontations create private debris. Some relatives apologized because they were ashamed. Others apologized because they feared losing access to money, property, or status. Daniel Vance learned to distinguish the two. A sincere apology named the harm without demanding immediate forgiveness. A strategic apology focused on the inconvenience of consequences..

Margaret remained nearby through the practical aftermath. There were appointments, statements, locks, forms, and long moments when the body reacted after the danger had passed. Daniel Vance sometimes shook while doing ordinary things. That did not mean the decision had been wrong. It meant the nervous system was finally allowed to acknowledge what composure had hidden. With help, Daniel Vance began separating strength from endurance. Enduring harm was not the same as being strong. Ending it was.

The legal and financial process moved more slowly than the confrontation, but it moved. Medical charts, access logs, service records, recordings, and sworn statements were reviewed by people trained to recognize patterns. Where crimes had occurred, charges followed the evidence. Where contracts had been abused, access and ownership were restored. Where a vulnerable person needed protection, orders established distance and supervision. Daniel Vance did not receive every outcome immediately, yet the uncertainty was different now. It existed inside a system rather than inside a secret.

The family rebuilt its life away from the command climate that had protected the abuse, choosing safety over appearances and truth over reputation. Daniel Vance changed the physical space as part of that recovery. Furniture associated with the worst memories was moved. Rooms were repainted or rearranged. Photographs were returned to places from which they had been displaced, while others were quietly removed. The goal was not to erase history. It was to prevent the home from remaining a museum of someone else's control.

Months later, the people who had once treated Daniel Vance as a dependable resource began encountering a new answer: no. Sometimes the word was delivered gently. Sometimes it arrived through an attorney. It was never followed by a long defense. Boundaries became less dramatic with use. The first one had required documents, witnesses, and courage. The later ones required only memory.

On the anniversary of the confrontation, Daniel Vance returned to a detail from the original setting. It might have been the porch, the table, the hallway, the hospital room, the ballroom, or the quiet place where a phone had vibrated with the first warning. The space no longer felt owned by the memory of Vanessa. It was simply a place again. Daniel Vance stood there with Margaret and understood that safety had changed the sound of silence. It no longer meant surrender. It meant peace.

One of the hardest conversations happened with the rest of the family. They wanted to know why Daniel Vance had not spoken sooner. The question carried an accusation even when it was asked gently. Daniel Vance explained that speaking is not a single act. A person may object many times in rooms where objections are ignored, minimized, or punished. The problem was never a lack of words. It was a family structure that rewarded the people refusing to hear them. That explanation changed at least one relationship. Someone who had once stayed neutral began attending appointments, reading documents, and learning how control disguises itself as concern.

There was also the matter of reputation. Vanessa had cultivated a public identity that made the allegations difficult for outsiders to accept. Friends described generosity, elegance, discipline, or devotion. Daniel Vance did not argue with those descriptions. A person can be charming in public and cruel in private. Both observations may be accurate, but only one reveals what happens when there is no audience to impress. The records allowed people to hold those two truths together without asking the victim to simplify the story.

During one appointment, an adviser asked Daniel Vance what outcome would feel like justice. The answer did not come immediately. Punishment alone would not restore the lost years or erase the scene. Eventually, Daniel Vance said justice meant choice. It meant deciding who entered the home, who touched the accounts, who spoke to the vulnerable family members, and who was permitted to call cruelty a private matter. The adviser wrote that down. From then on, every legal step was measured against whether it returned choice.

Daniel Vance also confronted personal guilt. There were moments of wondering whether firmer boundaries earlier might have prevented the crisis. Therapy replaced that question with a more accurate one: why had Vanessa continued after being shown the harm? Responsibility belonged to the person choosing control and to the people protecting that choice. Compassion for earlier versions of oneself became part of recovery. Daniel Vance had survived using the tools available at the time. Now there were better tools.

The vulnerable people around the conflict noticed the change before the adults did. Meals became calmer. Doors stayed unlocked from the safe side and locked against those who no longer had permission. Phones stopped ringing through the night. No one was required to perform affection to avoid punishment. These ordinary changes became evidence of a different kind, evidence that a household could function without fear as its organizing principle.

Trust returned unevenly. Some mornings Daniel Vance felt completely certain, while an unexpected sound or familiar phrase brought the old fear back. Recovery was not a straight line, and no one demanded that it be. Margaret learned to ask what was needed instead of assuming. Sometimes the answer was company. Sometimes it was help with a form. Sometimes it was simply a quiet room and the assurance that no decision had to be made under pressure.

Another practical lesson emerged from the case. Documentation was not cold or disloyal. It was a way of protecting memory when pressure tried to rewrite it. Daniel Vance kept a dated folder, recorded decisions immediately after meetings, and stored copies beyond the household. That habit reduced the power of sudden accusations. It also helped professionals see continuity rather than isolated incidents. What had once felt like a confusing series of arguments became a recognizable pattern when placed in order.

Trust returned unevenly. Some mornings Daniel Vance felt completely certain, while an unexpected sound or familiar phrase brought the old fear back. Recovery was not a straight line, and no one demanded that it be. Margaret learned to ask what was needed instead of assuming. Sometimes the answer was company. Sometimes it was help with a form. Sometimes it was simply a quiet room and the assurance that no decision had to be made under pressure.

Another practical lesson emerged from the case. Documentation was not cold or disloyal. It was a way of protecting memory when pressure tried to rewrite it. Daniel Vance kept a dated folder, recorded decisions immediately after meetings, and stored copies beyond the household. That habit reduced the power of sudden accusations. It also helped professionals see continuity rather than isolated incidents. What had once felt like a confusing series of arguments became a recognizable pattern when placed in order.

Trust returned unevenly. Some mornings Daniel Vance felt completely certain, while an unexpected sound or familiar phrase brought the old fear back. Recovery was not a straight line, and no one demanded that it be. Margaret learned to ask what was needed instead of assuming. Sometimes the answer was company. Sometimes it was help with a form. Sometimes it was simply a quiet room and the assurance that no decision had to be made under pressure.

Another practical lesson emerged from the case. Documentation was not cold or disloyal. It was a way of protecting memory when pressure tried to rewrite it. Daniel Vance kept a dated folder, recorded decisions immediately after meetings, and stored copies beyond the household. That habit reduced the power of sudden accusations. It also helped professionals see continuity rather than isolated incidents. What had once felt like a confusing series of arguments became a recognizable pattern when placed in order.

Preview

Trust returned unevenly. Some mornings Daniel Vance felt completely certain, while an unexpected sound or familiar phrase brought the old fear back. Recovery was not a straight line, and no one demanded that it be. Margaret learned to ask what was needed instead of assuming. Sometimes the answer was company. Sometimes it was help with a form. Sometimes it was simply a quiet room and the assurance that no decision had to be made under pressure.

Another practical lesson emerged from the case. Documentation was not cold or disloyal. It was a way of protecting memory when pressure tried to rewrite it. Daniel Vance kept a dated folder, recorded decisions immediately after meetings, and stored copies beyond the household. That habit reduced the power of sudden accusations. It also helped professionals see continuity rather than isolated incidents. What had once felt like a confusing series of arguments became a recognizable pattern when placed in order.

Trust returned unevenly. Some mornings Daniel Vance felt completely certain, while an unexpected sound or familiar phrase brought the old fear back. Recovery was not a straight line, and no one demanded that it be. Margaret learned to ask what was needed instead of assuming. Sometimes the answer was company. Sometimes it was help with a form. Sometimes it was simply a quiet room and the assurance that no decision had to be made under pressure.

Another practical lesson emerged from the case. Documentation was not cold or disloyal. It was a way of protecting memory when pressure tried to rewrite it. Daniel Vance kept a dated folder, recorded decisions immediately after meetings, and stored copies beyond the household. That habit reduced the power of sudden accusations. It also helped professionals see continuity rather than isolated incidents. What had once felt like a confusing series of arguments became a recognizable pattern when placed in order.

Trust returned unevenly. Some mornings Daniel Vance felt completely certain, while an unexpected sound or familiar phrase brought the old fear back. Recovery was not a straight line, and no one demanded that it be. Margaret learned to ask what was needed instead of assuming. Sometimes the answer was company. Sometimes it was help with a form. Sometimes it was simply a quiet room and the assurance that no decision had to be made under pressure.

Another practical lesson emerged from the case. Documentation was not cold or disloyal. It was a way of protecting memory when pressure tried to rewrite it. Daniel Vance kept a dated folder, recorded decisions immediately after meetings, and stored copies beyond the household. That habit reduced the power of sudden accusations. It also helped professionals see continuity rather than isolated incidents. What had once felt like a confusing series of arguments became a recognizable pattern when placed in order.

Trust returned unevenly. Some mornings Daniel Vance felt completely certain, while an unexpected sound or familiar phrase brought the old fear back. Recovery was not a straight line, and no one demanded that it be. Margaret learned to ask what was needed instead of assuming. Sometimes the answer was company. Sometimes it was help with a form. Sometimes it was simply a quiet room and the assurance that no decision had to be made under pressure.

Another practical lesson emerged from the case. Documentation was not cold or disloyal. It was a way of protecting memory when pressure tried to rewrite it. Daniel Vance kept a dated folder, recorded decisions immediately after meetings, and stored copies beyond the household. That habit reduced the power of sudden accusations. It also helped professionals see continuity rather than isolated incidents. What had once felt like a confusing series of arguments became a recognizable pattern when placed in order.

Trust returned unevenly. Some mornings Daniel Vance felt completely certain, while an unexpected sound or familiar phrase brought the old fear back. Recovery was not a straight line, and no one demanded that it be. Margaret learned to ask what was needed instead of assuming. Sometimes the answer was company. Sometimes it was help with a form. Sometimes it was simply a quiet room and the assurance that no decision had to be made under pressure.

Another practical lesson emerged from the case. Documentation was not cold or disloyal. It was a way of protecting memory when pressure tried to rewrite it. Daniel Vance kept a dated folder, recorded decisions immediately after meetings, and stored copies beyond the household. That habit reduced the power of sudden accusations. It also helped professionals see continuity rather than isolated incidents. What had once felt like a confusing series of arguments became a recognizable pattern when placed in order.

Trust returned unevenly. Some mornings Daniel Vance felt completely certain, while an unexpected sound or familiar phrase brought the old fear back. Recovery was not a straight line, and no one demanded that it be. Margaret learned to ask what was needed instead of assuming. Sometimes the answer was company. Sometimes it was help with a form. Sometimes it was simply a quiet room and the assurance that no decision had to be made under pressure.

Another practical lesson emerged from the case. Documentation was not cold or disloyal. It was a way of protecting memory when pressure tried to rewrite it. Daniel Vance kept a dated folder, recorded decisions immediately after meetings, and stored copies beyond the household. That habit reduced the power of sudden accusations. It also helped professionals see continuity rather than isolated incidents. What had once felt like a confusing series of arguments became a recognizable pattern when placed in order.

Trust returned unevenly. Some mornings Daniel Vance felt completely certain, while an unexpected sound or familiar phrase brought the old fear back. Recovery was not a straight line, and no one demanded that it be. Margaret learned to ask what was needed instead of assuming. Sometimes the answer was company. Sometimes it was help with a form. Sometimes it was simply a quiet room and the assurance that no decision had to be made under pressure.

Another practical lesson emerged from the case. Documentation was not cold or disloyal. It was a way of protecting memory when pressure tried to rewrite it. Daniel Vance kept a dated folder, recorded decisions immediately after meetings, and stored copies beyond the household. That habit reduced the power of sudden accusations. It also helped professionals see continuity rather than isolated incidents. What had once felt like a confusing series of arguments became a recognizable pattern when placed in order.

The final message from Vanessa arrived weeks later. It contained explanations, selective memories, and a request to restore the old arrangement. Daniel Vance read it once and saved it with the rest of the records. There was no angry reply. The absence of argument was not weakness. It was proof that the argument no longer controlled the future.

May you like

People who heard the story later often focused on the dramatic moment, the changed lock, the hidden record, the interrupted ceremony, the opened door, or the authority who entered at exactly the right time. Daniel Vance knew the real turning point had come earlier. It was the quiet instant after “Eat it” when shame stopped pointing inward. From that moment, every step led away from fear and toward a life in which love could no longer be used as permission to harm.

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