fraction / oasis

Free, open-source, peer-to-peer social application that helps you follow friends and discover new ones on Secure Scuttlebutt (SSB).
http://oasis-demo.fraction.io
GNU Affero General Public License v3.0
286 stars 42 forks source link

Hides content of messages from blocked people #624

Closed nickwynja closed 3 years ago

nickwynja commented 3 years ago

What's the problem you solved?

622

What solution are you recommending?

This introduces a basic implementation to not display the content of messages. It still shows that a message exists but shows localized copy indicating why the content was hidden.

We should consider additional filters or queries in different views to actually remove these posts but I'll leave that as up for discussion since I can see value in showing that a blocked comment exists in a conversation.

SomaRasu commented 3 years ago

This PR looks good to me: I tested the code locally by blocking a user in a thread. Their message isn't displayed and a placeholder div saying "This message hides content from a blocked user." is shown instead.

christianbundy commented 3 years ago

Beautiful, nice work @nickwynja!