Live video on the AT Protocol

director: streams are indexed by URI now, not CID

+2 -2
+1 -1
pkg/director/stream_session.go
··· 276 276 return fmt.Errorf("could not convert livestream to streamplace livestream: %w", err) 277 277 } 278 278 279 - post, err := ss.mod.GetFeedPost(ls.PostCID) 279 + post, err := ss.mod.GetFeedPost(ls.PostURI) 280 280 if err != nil { 281 281 return fmt.Errorf("could not get feed post: %w", err) 282 282 }
+1 -1
pkg/model/model.go
··· 62 62 CreateFeedPost(ctx context.Context, post *FeedPost) error 63 63 ListFeedPosts() ([]FeedPost, error) 64 64 ListFeedPostsByType(feedType string, limit int, after int64) ([]FeedPost, error) 65 - GetFeedPost(cid string) (*FeedPost, error) 65 + GetFeedPost(uri string) (*FeedPost, error) 66 66 GetReplies(repoDID string) ([]*bsky.FeedDefs_PostView, error) 67 67 68 68 CreateLivestream(ctx context.Context, ls *Livestream) error