Skip to content

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

Merged
gaearon merged 2 commits into
mainfrom
improve-nsfpublic
Nov 22, 2024
Merged

Improve error name and message for signed-in only feeds#6577
gaearon merged 2 commits into
mainfrom
improve-nsfpublic

Conversation

@estrattonbailey

@estrattonbailey estrattonbailey commented Nov 20, 2024

Copy link
Copy Markdown
Member

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
@github-actions

Copy link
Copy Markdown
Contributor
Old size New size Diff
8.06 MB 8.06 MB 21 B (0.00%)

Comment thread src/view/com/posts/FeedErrorMessage.tsx Outdated

@pfrazee pfrazee left a comment

Copy link
Copy Markdown
Collaborator

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
@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