Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When posting a comment without an image, the comment is not made #22

Open
Tracked by #38
steph-koopmanschap opened this issue Feb 3, 2023 · 0 comments
Open
Tracked by #38
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@steph-koopmanschap
Copy link
Owner

When posting a comment without an image, the comment is not made.
When posting a comment with an image, the comment IS made and there is no problem.

Steps to reproduce this behavior:

  • Login (register if you have no account yet)
  • Comment on a post with only text and no image
    (create a post or run npm run db:generate 100 in the /express/ directory.)

In the browser console the following response appears:

Object { success: false, message: "Post must include content" }

The server terminal logs the following:

field name post_id
field value bed5f54c-0d8e-4241-bf78-c60266bf660d
field name comment_text
field value test
field name context
field value comment
formdata on close [Object: null prototype] {
  assignedEntryId: 'ca027bb2-4515-473d-9158-0d3325f9c666',
  post_id: 'bed5f54c-0d8e-4241-bf78-c60266bf660d',
  comment_text: 'test',
  context: 'comment'
}
and ndext 1
@steph-koopmanschap steph-koopmanschap added bug Something isn't working help wanted Extra attention is needed good first issue Good for newcomers labels Feb 17, 2023
@steph-koopmanschap steph-koopmanschap mentioned this issue Mar 14, 2023
16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant