Skip to content

Commit

Permalink
Fix GetTimeline
Browse files Browse the repository at this point in the history
  • Loading branch information
TheIndra55 committed Jul 7, 2023
1 parent 3a84266 commit 3a57405
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion BlueskySharp.Tests/PostTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public async Task TestGetTimeline()
{
var t = await _client.GetTimelineAsync();

Assert.IsTrue(t.Posts.Length > 0);
Assert.IsTrue(t.Feed.Length > 0);
}
}
}
7 changes: 6 additions & 1 deletion BlueskySharp/Response/Feed.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,14 @@ public record Post
public string[] Labels { set; get; }
}

public record FeedViewPost
{
public Post Post { get; set; }
}

public record Timeline
{
public string Cursor { set; get; }
public Post[] Posts { set; get; }
public FeedViewPost[] Feed { set; get; }
}
}

0 comments on commit 3a57405

Please sign in to comment.