Skip to content

Commit

Permalink
Fix Record
Browse files Browse the repository at this point in the history
  • Loading branch information
drasticactions committed Aug 1, 2023
1 parent 99107fd commit 10b190a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/FishyFlip/BlueskyFeed.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public async Task<Result<FeedPostList>> GetFeedAsync(ATUri uri, int limit = 30,
Multiple<FeedPostList?, Error> result = await this.Client.Get<FeedPostList>(url, this.Options.JsonSerializerOptions, cancellationToken, this.Options.Logger);
return result
.Match<Result<FeedPostList>>(
timeline => (timeline ?? new FeedPostList(Array.Empty<FeedPost>(), null))!,
timeline => (timeline ?? new FeedPostList(Array.Empty<FeedViewPost>(), null))!,
error => error!);
}

Expand Down
4 changes: 1 addition & 3 deletions src/FishyFlip/Models/FeedRecord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ public record FeedRecord(ATUri Uri, ATDid Did, string Avatar, FeedCreator Creato

public record FeedGeneratorRecord(bool IsOnline, bool IsValid, FeedRecord View);

public record FeedPostList(FeedPost[] Feed, string? Cursor);

public record FeedPost(PostView Post);
public record FeedPostList(FeedViewPost[] Feed, string? Cursor);

public record FeedCollection(FeedRecord[] Feeds);

Expand Down

0 comments on commit 10b190a

Please sign in to comment.