a fork of iceshrimp.net but a tweaked frontend to my personal liking. waow
fediverse social-media social iceshrimp fedi
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

[backend/masto-client] Bring back quote_id

Since we can no longer represent ShallowQuote without breaking the
polyglot object hack, this becomes much more useful.

Kopper 8f277777 6e48fd71

+26 -24
+1
Iceshrimp.Backend/Controllers/Mastodon/Renderers/NoteRenderer.cs
··· 211 211 CurrentUser = CurrentUserQuoteAuthorization.Automatic 212 212 }, 213 213 Quote = quote, 214 + QuoteId = note.IsQuote ? note.RenoteId : null, 214 215 ContentType = "text/x.misskeymarkdown", 215 216 CreatedAt = note.CreatedAt.ToStringIso8601Like(), 216 217 EditedAt = note.UpdatedAt?.ToStringIso8601Like(),
+25 -24
Iceshrimp.Backend/Controllers/Mastodon/Schemas/Entities/StatusEntity.cs
··· 10 10 11 11 public class StatusEntity : IIdentifiable, ICloneable 12 12 { 13 - [JI] public string? MastoReplyUserId; 14 - [J("text")] public required string? Text { get; set; } 15 - [J("content")] public required string? Content { get; set; } 16 - [J("uri")] public required string Uri { get; set; } 17 - [J("url")] public required string? Url { get; set; } 18 - [J("account")] public required AccountEntity Account { get; set; } 19 - [J("in_reply_to_id")] public required string? ReplyId { get; set; } 20 - [J("in_reply_to_account_id")] public required string? ReplyUserId { get; set; } 21 - [J("reblog")] public required StatusEntity? Renote { get; set; } 22 - [J("quote")] public required StatusEntity? Quote { get; set; } 23 - [J("quote_approval")] public required QuoteApproval? QuoteApproval { get; set; } 24 - [J("content_type")] public required string ContentType { get; set; } 25 - [J("created_at")] public required string CreatedAt { get; set; } 26 - [J("edited_at")] public required string? EditedAt { get; set; } 27 - [J("replies_count")] public required long RepliesCount { get; set; } 28 - [J("reblogs_count")] public required long RenoteCount { get; set; } 29 - [J("favourites_count")] public required long FavoriteCount { get; set; } 30 - [J("reblogged")] public required bool? IsRenoted { get; set; } 31 - [J("favourited")] public required bool? IsFavorited { get; set; } 32 - [J("bookmarked")] public required bool? IsBookmarked { get; set; } 33 - [J("muted")] public required bool? IsMuted { get; set; } 34 - [J("sensitive")] public required bool IsSensitive { get; set; } 35 - [J("spoiler_text")] public required string ContentWarning { get; set; } 36 - [J("visibility")] public required string Visibility { get; set; } 13 + [JI] public string? MastoReplyUserId; 14 + [J("text")] public required string? Text { get; set; } 15 + [J("content")] public required string? Content { get; set; } 16 + [J("uri")] public required string Uri { get; set; } 17 + [J("url")] public required string? Url { get; set; } 18 + [J("account")] public required AccountEntity Account { get; set; } 19 + [J("in_reply_to_id")] public required string? ReplyId { get; set; } 20 + [J("in_reply_to_account_id")] public required string? ReplyUserId { get; set; } 21 + [J("reblog")] public required StatusEntity? Renote { get; set; } 22 + [J("quote")] public required StatusEntity? Quote { get; set; } 23 + [J("quote_id")] public required string? QuoteId { get; set; } 24 + [J("quote_approval")] public required QuoteApproval? QuoteApproval { get; set; } 25 + [J("content_type")] public required string ContentType { get; set; } 26 + [J("created_at")] public required string CreatedAt { get; set; } 27 + [J("edited_at")] public required string? EditedAt { get; set; } 28 + [J("replies_count")] public required long RepliesCount { get; set; } 29 + [J("reblogs_count")] public required long RenoteCount { get; set; } 30 + [J("favourites_count")] public required long FavoriteCount { get; set; } 31 + [J("reblogged")] public required bool? IsRenoted { get; set; } 32 + [J("favourited")] public required bool? IsFavorited { get; set; } 33 + [J("bookmarked")] public required bool? IsBookmarked { get; set; } 34 + [J("muted")] public required bool? IsMuted { get; set; } 35 + [J("sensitive")] public required bool IsSensitive { get; set; } 36 + [J("spoiler_text")] public required string ContentWarning { get; set; } 37 + [J("visibility")] public required string Visibility { get; set; } 37 38 38 39 [J("pinned")] 39 40 [JI(Condition = JsonIgnoreCondition.WhenWritingNull)]