voyager icon indicating copy to clipboard operation
voyager copied to clipboard

Website previews for NSFW posts aren't blurred

Open bdonvr opened this issue 2 years ago • 4 comments

IMG_1159

Top post is an image file and is blurred, bottom post is a preview of a website.

Here's the bottom of that post with details:

IMG_1160

bdonvr avatar Jul 01 '23 03:07 bdonvr

I would like to work on this issue. Please guide me, how can I resolve this.

jaykesarkar avatar Jul 01 '23 06:07 jaykesarkar

I am an experienced full-stack Developer. I am currently looking into this issue. I already have everything spun up on my local environment and looking into how to address it best. However, if someone else would like to take a stab at it, let me know in this thread, and I can help that person instead.

xpertbot avatar Jul 01 '23 16:07 xpertbot

I am an experienced full-stack Developer. I am currently looking into this issue. I already have everything spun up on my local environment and looking into how to address it best. However, if someone else would like to take a stab at it, let me know in this thread, and I can help that person instead.

I wanted to resolve this issue, but you already know how to resolve it, so go for it.

jaykesarkar avatar Jul 01 '23 18:07 jaykesarkar

I looked a bit the source code and tried some dirty fix. I hope it helps contributors with more time (and react knowledge) to fix this.

I did put blur by default to ImageContainer and it blurs everything out except the external links like the one posted here. So these images aren't rendered the same way.

Video will also need a new blur callback. Strangely duplicating what is done for PostImage just doesn't work.

I don't know if these information are useful or not, but I hope so

l0wigh avatar Jul 02 '23 23:07 l0wigh