Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
drasticactions committed Aug 3, 2023
1 parent 5447770 commit f5341e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/FishyFlip/Models/PostViewEmbed.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace FishyFlip.Models;

public record PostViewEmbed(
string Uri,
ATUri Uri,
Cid Cid,
int ReplyCount,
int RepostCount,
Expand Down
5 changes: 5 additions & 0 deletions src/FishyFlip/Models/RecordViewEmbed.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@ public class RecordViewEmbed : Embed
public RecordViewEmbed(PostViewEmbed record)
{
this.Record = record;
var embed = record.Embeds?.FirstOrDefault();
this.Post = new PostView(record.Uri, record.Cid, record.ReplyCount, record.RepostCount, record.LikeCount, embed, record.Author, record.Value, record.IndexedAt, record.Label);
this.Type = Constants.EmbedTypes.RecordView;
}

public PostViewEmbed Record { get; }

[JsonIgnore]
public PostView Post { get; }
}

0 comments on commit f5341e3

Please sign in to comment.