Skip to content

Commit

Permalink
fix: allow PostView to be passed to embed (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic authored Nov 25, 2024
1 parent 14e6087 commit c9cc93a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/shaggy-ties-laugh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astro-community/astro-embed-bluesky': patch
---

Allow PostView to be passed to embed
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/astro-embed-bluesky/src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { default as BlueskyPost } from './post.astro';
export type { Post } from './types';
3 changes: 2 additions & 1 deletion packages/astro-embed-bluesky/src/post.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import Embed from './embed.astro';
import type { Post } from './types';
import './styles.css';
import Avatar from './avatar.astro';
import type { AppBskyFeedDefs } from '@atproto/api';
type Props = {
id?: string;
post?: string | Post;
post?: string | Post | AppBskyFeedDefs.PostView;
};
const postRef = Astro.props.id ?? Astro.props.post;
Expand Down

0 comments on commit c9cc93a

Please sign in to comment.