johnHackworth / goblin

GNU Affero General Public License v3.0
50 stars 4 forks source link

Note display doesn't honor drive_file.isSensitive column #63

Closed sirilyan closed 7 months ago

sirilyan commented 7 months ago

Content warning, nudity: https://kobold.page/notes/9ruz95nch9oay54b

goblin does not give a content warning or blur on the picture, even though it is flagged as sensitive:

goblin=# select "isSensitive" from "drive_file" where id = '9ruz99fubugso4wm';
 isSensitive 
-------------
 t
(1 row)

Here's where the filtering would need to be added:

https://github.com/johnHackworth/goblin/blob/41db461f244fa85733d819d5065af6386d55bce5/packages/client/src/components/note/NoteContent.vue#L53