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

Improve error name and message for signed-in only feeds #6577

Merged
merged 2 commits into from
Nov 22, 2024

Conversation

estrattonbailey
Copy link
Member

@estrattonbailey estrattonbailey commented Nov 20, 2024

When viewing a feed as a signed-out visitor to our web app, we check pages of posts to see if any posts pass the default signed-out moderation settings. If none pass, we show an error screen in place of an entirely empty feed. We do this to prevent endless frontend fetching, trying to find a full page (30) posts that pass moderation and can be shown to the public.

Important to note: no-unauthenticated labels on users are also caught by this moderation check, meaning if a feed is full of folks who have opted out of public views, we will also show this error screen on the feed.

The previous error name and copy was a little misleading, and maybe concerning to some users. This PR aims to make it a little more clear what's happening. In the future we should revisit how we handle this "error" state.

CleanShot 2024-11-20 at 13 50 44@2x

@estrattonbailey estrattonbailey changed the title Improve error name and message for logged-in only feeds Improve error name and message for signed-in only feeds Nov 20, 2024
Copy link

Old size New size Diff
8.06 MB 8.06 MB 21 B (0.00%)

Copy link
Collaborator

@pfrazee pfrazee 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, one small tweak

@arcalinea arcalinea temporarily deployed to improve-nsfpublic - social-app PR #6577 November 22, 2024 11:42 — with Render Destroyed
@gaearon gaearon merged commit 7232684 into main Nov 22, 2024
6 checks passed
@gaearon gaearon deleted the improve-nsfpublic branch November 22, 2024 14:46
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.

4 participants