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

hide content warning button when there is no content #4518

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

connyduck
Copy link
Collaborator

@connyduck connyduck commented Jun 17, 2024

I encountered this weird post today that had a content warning button but no content.

This change will match Mastodon behavior and hide the button when there is no content to reveal.

We probably did not encounter this bug earlier because Mastodon moves the CW to the content when the content is empty, but apparently not for federated posts.

@connyduck connyduck requested review from Tak and charlag June 17, 2024 16:45
@connyduck connyduck merged commit 976fa28 into develop Jun 19, 2024
3 checks passed
@connyduck connyduck deleted the hide-content-warning-button-on-empty-content branch June 19, 2024 14:51
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.

2 participants