[Bug/Feature?] Use SELECT TEXT on a deleted comment

You can see the full text 😅

7 points · 10 comments · view on lemmy.world

10 Comments

zoe_codez@lemmy.digital-alchemy.app · 3 pts · 3y (2 replies)

Interesting the API returns the text for people that shouldn't have access. That's a bug with Lemmy I'd say. A ticket should probably be filed there

Put up a PR to fix this with voyager tho, quick change. Keeps the button around for mods & the author, but hides it for everyone else when the comment is removed

Deez@lemm.ee · 2 pts · 3y (1 reply)

It seems to be a feature of Lemmy to keep deleted comments, so they can be restored if deleted by accident. https://github.com/LemmyNet/lemmy/issues/2977

A few weeks ago they merged a change to purge deleted comments after 30 days: https://github.com/LemmyNet/lemmy/pull/3208

For users that want to delete their comment, it seems like editing it is a more effective option.

zoe_codez@lemmy.digital-alchemy.app · 2 pts · 3y

Was more thinking the api should sanitize those for normal people. Makes sense that they'd continue to exist in the database for restoration

Agree with the editing. Mods get a purge button also, which makes a bit more sense now

Deez@lemm.ee · 2 pts · 3y (5 replies)
[ removed ]
Deez@lemm.ee · 2 pts · 3y (4 replies)

I can see my own comment using this method, but can anyone (except OP) see my comment?

rsn@lemmy.world · 3 pts · 3y

Yes I can read the original comment using ‘Select text’.

Kuunha@lemmy.world · 1 pts · 3y (2 replies)
[ removed ]
Deez@lemm.ee · 2 pts · 3y (1 reply)

Yep good find OP, I tested on some other posts and had the same behaviour. I’m going to try to check if includes mod/admin comment removal.

Deez@lemm.ee · 2 pts · 3y

Yep works on mod comment deletion too.

rsn@lemmy.world · 1 pts · 3y

Agreed, that’s a feature! 😁