keep-starknet-strange / joyboy

Decentralized social built with Nostr and powered by Starknet account abstraction.
https://joyboy.community
MIT License
68 stars 50 forks source link

Blank post and comments #286

Closed lindsaymoralesb closed 2 months ago

lindsaymoralesb commented 2 months ago

Description

Right now the platform doesn't allow a user to post a note if it doesn't have any content, that means blank posts aren't allowed. In the case a person enters just blank spaces the note can be saved. This happens for comments as well. Related to: #223

Solution

Use a trim function before saving the post to make sure it has content.

Steps to reproduce

  1. Click on the new post button
  2. Enter just blank spaces
  3. Post the note

Evidence

https://github.com/user-attachments/assets/48b8eda8-ccd3-4b07-847e-94866ad9b9f9

lindsaymoralesb commented 2 months ago

Hey! @ugur-eren If this issue is open for contribution I'd like to help.

ugur-eren commented 2 months ago

Sure, you can work on it