plebbit / plebbit-react

A GUI for plebbit
https://plebbitapp.eth.limo
GNU General Public License v2.0
35 stars 6 forks source link

Implement hide #246

Closed estebanabaroa closed 1 year ago

estebanabaroa commented 1 year ago

Reddit has a button to hide:

Screenshot 2023-04-09 at 00-34-49 reddit

It is possible to do the same thing on plebbit using the hooks https://github.com/plebbit/plebbit-react-hooks/#block-a-cid-hide-a-comment

When a comment cid is blocked, it will no longer appear in the feeds, the user will also not receive any notification from the block comment anymore.

After the user clicks block, the card should also be hidden, because the hooks can't edit an already loaded feed. The block will be on for any future feed, but the current feed card must be hidden by plebbit-react when the user clicks it. There should not an an undo button or success popup, reddit doesn't have one.