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

* Improve error name and message for logged-in only feeds

* Revert msg edit

---------

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
This commit is contained in:
Eric Bailey
2024-11-22 08:45:59 -06:00
committed by GitHub
parent a5dbb35237
commit 72326844cd
3 changed files with 9 additions and 34 deletions
+1 -1
View File
@@ -602,7 +602,7 @@ function assertSomePostsPassModeration(feed: AppBskyFeedDefs.FeedViewPost[]) {
}
if (!somePostsPassModeration) {
throw new Error(KnownError.FeedNSFPublic)
throw new Error(KnownError.FeedSignedInOnly)
}
}