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: filter and cw logic #1633

Merged
merged 11 commits into from
Feb 5, 2023
Merged

fix: filter and cw logic #1633

merged 11 commits into from
Feb 5, 2023

Conversation

ayoayco
Copy link
Member

@ayoayco ayoayco commented Feb 5, 2023

fixes #1027

  • Do not filter your own authored posts
  • Spoiler text should be prioritized if filter phrase also exists

screenshot

for test post 👉 https://elk.zone/social.ayco.io/@ayo/109677886156981992

main.elk.zone preview with fix mastodon web
Screenshot 2023-02-05 at 12 11 31 PM Screenshot 2023-02-05 at 12 11 44 PM Screenshot 2023-02-05 at 12 11 51 PM

@ayoayco ayoayco self-assigned this Feb 5, 2023
@stackblitz
Copy link

stackblitz bot commented Feb 5, 2023

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

@netlify
Copy link

netlify bot commented Feb 5, 2023

Deploy Preview for elk-docs canceled.

Name Link
🔨 Latest commit 5d5cc31
🔍 Latest deploy log https://app.netlify.com/sites/elk-docs/deploys/63dfc416c2aa5a0008e50aa5

@netlify
Copy link

netlify bot commented Feb 5, 2023

Deploy Preview for elk-zone ready!

Name Link
🔨 Latest commit 5d5cc31
🔍 Latest deploy log https://app.netlify.com/sites/elk-zone/deploys/63dfc4160ea97d00083d5ca1
😎 Deploy Preview https://deploy-preview-1633--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.

@ayoayco ayoayco marked this pull request as ready for review February 5, 2023 09:30
@ayoayco ayoayco changed the title fix-1027-filter-and-cw-logic fix: filter and cw logic Feb 5, 2023
@danielroe
Copy link
Member

Not a consequence of this change, but may be worth fixing the following issue as well too:

CleanShot 2023-02-05 at 12 31 19@2x

https://deploy-preview-1633--elk-zone.netlify.app/front-end.social/@heydon/109811610266201734

@ayoayco
Copy link
Member Author

ayoayco commented Feb 5, 2023

Not a consequence of this change, but may be worth fixing the following issue as well too:

CleanShot 2023-02-05 at 12 31 19@2x

https://deploy-preview-1633--elk-zone.netlify.app/front-end.social/@heydon/109811610266201734

Okay, I'll see what's happening here

@danielroe Update, I pushed a fix for this. Some accounts mark all their posts as sensitive by default. :)

composables/timeline.ts Outdated Show resolved Hide resolved
composables/timeline.ts Outdated Show resolved Hide resolved
@ayoayco
Copy link
Member Author

ayoayco commented Feb 5, 2023

Thanks, @danielroe! Learned about happy-dom :) I think this one is good now

@danielroe danielroe merged commit 0fbe34c into elk-zone:main Feb 5, 2023
@ayoayco ayoayco deleted the fix-1027-filter-and-cw-logic branch October 3, 2023 05:31
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.

Filter and Content Warning logic is wrong
2 participants