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

fix: wrap non-sensitive spoilers in spoiler status #1864

Merged
merged 1 commit into from
Mar 7, 2023

Conversation

zaidhaan
Copy link
Contributor

@zaidhaan zaidhaan commented Mar 7, 2023

This fixes a regression introduced in #1633 that causes spoilers to be disabled if media is non-sensitive, when the expected behavior would be to: "enable spoilers as long as there's [spoiler text or sensitive media] or [if its filtered]".

I'm fairly sure that this should be as simple of a fix as that, but I think @ayoayco would be able to verify if anything else needs to be addressed.

(again, not evident in these screenshots but this post has sensitive: false)
Original instance (link):
image

Elk (canary link):
image

With this fix (preview link):
image

Fixes #1846.

@stackblitz
Copy link

stackblitz bot commented Mar 7, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@netlify
Copy link

netlify bot commented Mar 7, 2023

Deploy Preview for elk-zone ready!

Name Link
🔨 Latest commit 7685a05
🔍 Latest deploy log https://app.netlify.com/sites/elk-zone/deploys/64077abfb5cc25000825e989
😎 Deploy Preview https://deploy-preview-1864--elk-zone.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Mar 7, 2023

Deploy Preview for elk-docs canceled.

Name Link
🔨 Latest commit 7685a05
🔍 Latest deploy log https://app.netlify.com/sites/elk-docs/deploys/64077abf5acc720008cbea29

Copy link
Member

@patak-dev patak-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks for the 100th fix @zaidhaan 🔥

@patak-dev patak-dev merged commit 69c1bd8 into elk-zone:main Mar 7, 2023
@zaidhaan zaidhaan deleted the fix-hidden-spoiler branch March 7, 2023 18:42
DataDrivenMD pushed a commit to Distal-Labs/elk that referenced this pull request Mar 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Content warning bug
2 participants