Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NIP-36 Support: Sensitive Content / Content Warning / NSFW #910

Open
h3zjp opened this issue Apr 12, 2023 · 13 comments
Open

NIP-36 Support: Sensitive Content / Content Warning / NSFW #910

h3zjp opened this issue Apr 12, 2023 · 13 comments
Labels
feature New feature request NIP nsfw

Comments

@h3zjp
Copy link

h3zjp commented Apr 12, 2023

Can we support NIP-36 (Sensitive Content / Content Warning) to hide NSFW content?

Expected behavior

https://ul.h3z.jp/AfSwVpdu.png

Tap "表示するにはクリック" on the first image to see the text on the second image.

https://ul.h3z.jp/eDiDUCpY.png

Current Damus

https://ul.h3z.jp/fSd8TncT.jpeg

The NIP-36 specification is ignored and the text is displayed as is.

We Japanese are looking forward to this feature, so please implement it.
Best regards.

@alltheseas
Copy link
Collaborator

Can you provide a noteID to the above example?

@alltheseas
Copy link
Collaborator

@h3zjp
Copy link
Author

h3zjp commented Apr 13, 2023

I don't understand what noteID refers to, but I will include the JSON query that was POST to the relay.

https://ul.h3z.jp/zlHDsCl8.png
https://ul.h3z.jp/gs6RMW1s.png
https://ul.h3z.jp/UjzwhYDT.png
https://ul.h3z.jp/KzlJOYYa.png

@h3zjp
Copy link
Author

h3zjp commented Apr 13, 2023

The client used in the test is called "Rabbit".
https://github.com/syusui-s/rabbit

The implementation of this client displays the message "表示するにはクリック" and below it the text written in the NIP-36 content-warning tag.

@alltheseas
Copy link
Collaborator

I don't understand what noteID refers to,

Can you send a link to the note?

Here is an example link to a random note:

https://damus.io/note1ha6v4zp77tvnnptv6muxnjj6al8sqm7uumcwff3qz0a6a0l4tf9qp9gucf

@h3zjp
Copy link
Author

h3zjp commented Apr 13, 2023

I see! So that's what you meant!
I'm sorry.

This is it!
https://damus.io/note1h9ccy5w8p4dr7750zaahyhztrzhv77vly5mwg2j6tkq7ky8n580qkncsdc

@alltheseas alltheseas changed the title NIP-36 Support NIP-36 Support: Sensitive Content / Content Warning [feature request] Jun 26, 2023
@alltheseas alltheseas added the feature New feature request label Jun 26, 2023
@alltheseas alltheseas changed the title NIP-36 Support: Sensitive Content / Content Warning [feature request] NIP-36 Support: Sensitive Content / Content Warning / NSFW Jun 30, 2023
@alltheseas alltheseas added the NIP label Jun 30, 2023
@alltheseas
Copy link
Collaborator

See related #73

@alltheseas
Copy link
Collaborator

#1458

@alltheseas
Copy link
Collaborator

@jb55 advised this is not the solution to nsfw content

@jb55
Copy link
Collaborator

jb55 commented Sep 22, 2023 via email

@alltheseas
Copy link
Collaborator

@jb55 would a ML package (e.g. https://pypi.org/project/nsfw-detector/) integrated in Damus help with the job of detecting nsfw images?

@jb55
Copy link
Collaborator

jb55 commented Sep 22, 2023 via email

@alltheseas
Copy link
Collaborator

Great find. Created new issue here: #1553

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request NIP nsfw
Projects
None yet
Development

No branches or pull requests

3 participants