mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-04-30 03:22:04 -04:00
Views can be null
This commit is contained in:
@@ -363,7 +363,7 @@ public class XeetEmbedCommand : ICommand
|
||||
}
|
||||
|
||||
// Build footer (stats + links) - this will always be on the last message
|
||||
footerBuilder.Append($"💬 {tweet.Replies:N0} 🔁 {tweet.Retweets:N0} ❤️ {tweet.Likes:N0} 👁️ {tweet.Views:N0}[br]");
|
||||
footerBuilder.Append($"💬 {tweet.Replies:N0} 🔁 {tweet.Retweets:N0} ❤️ {tweet.Likes:N0} 👁️ {tweet.Views:N0 ?? 0}[br]");
|
||||
footerBuilder.Append($"[url={tweet.Url}]X.com[/url] | [url=https://xcancel.com/{tweet.Author.ScreenName}/status/{xeetId}]Xcancel[/url]");
|
||||
|
||||
// Split message if needed, with header always first and footer always last
|
||||
|
||||
@@ -23,7 +23,7 @@ internal class FxTweet
|
||||
[JsonPropertyName("created_timestamp")]
|
||||
public long CreatedTimestamp { get; set; }
|
||||
|
||||
[JsonPropertyName("views")] public int Views { get; set; }
|
||||
[JsonPropertyName("views")] public int? Views { get; set; }
|
||||
[JsonPropertyName("is_note_tweet")] public bool IsNoteTweet { get; set; }
|
||||
[JsonPropertyName("community_note")] public object? CommunityNote { get; set; }
|
||||
[JsonPropertyName("lang")] public string Lang { get; set; } = string.Empty;
|
||||
|
||||
Reference in New Issue
Block a user