Debatreya / Pen-nd-Pixel

'Pen & Pixel' is an AI-powered blogging and note-taking platform. It aims to provide users with a versatile and collaborative environment for organizing, sharing, and creating notes and blog posts. The platform leverages AI technologies to offer advanced features such as content summarization, collaborative editing
https://pen-nd-pixel.onrender.com
MIT License
0 stars 3 forks source link

Comment section allows posting empty comments #86

Closed sahil-arsss closed 3 months ago

sahil-arsss commented 4 months ago

Describe the bug

The comment section allows users to post empty comments. When a user submits a comment without any text, the system should prevent the comment from being posted and display an error message.

To Reproduce

Steps to reproduce the behavior:

  1. Navigate to the 'Blog Post' page.
  2. Click on the Publish comment with an empty box.
  3. Observe that an empty comment is posted. ----> like this -""

    Expected behavior

    The system should not post any comment if the input field is empty.

Screenshots

image

Debatreya commented 4 months ago

Actually. Comment section has no backend connection 😅.

We will consider that while integrating the backend. ..

Debatreya commented 4 months ago

@sahil-arsss would you like to contribute?

sahil-arsss commented 4 months ago

Of course!

Debatreya commented 4 months ago

Of course!

Cool :|

  1. So just fork this repo,
  2. Clone it locally
  3. Create a branch that suits the features you are working on: like feat/comments

These are the basic steps I recommend so as production is not disturbed.

@Aryawart-kathpal will give you the knowledge of the Routes related to /comments and required env

So go on.✨👍

Create a PR as you are finished implementing.