Skip to content

Commit

Permalink
Appview: pinned post validation fix (#2876)
Browse files Browse the repository at this point in the history
* appview: temp fix for bad pinned post values

* appview: avoid passing non-object to strong ref validation
  • Loading branch information
devinivy authored Oct 11, 2024
1 parent 7096fe0 commit 60df3fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bsky/src/util/uris.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function uriToDid(uri: string) {

// @TODO temp fix for proliferation of invalid pinned post values
export function safePinnedPost(value: unknown) {
if (!value) {
if (!value || typeof value !== 'object') {
return
}
const validated = validateStrongRef(value)
Expand Down

0 comments on commit 60df3fc

Please sign in to comment.