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] Fix OpenAPI generation

Kopper e802362c d4b2c163

+15 -14
+1 -1
Iceshrimp.Backend/Controllers/Mastodon/Renderers/NoteRenderer.cs
··· 80 80 LocalOnly = note.LocalOnly, 81 81 QuoteId = note.IsQuote ? note.RenoteId : null, 82 82 ReblogId = note.IsPureRenote ? note.RenoteId : null, 83 - Poll = poll == null ? null : new ScheduledStatusEntity.Param.PollData 83 + Poll = poll == null ? null : new ScheduledStatusEntity.Param.ScheduledPollData 84 84 { 85 85 ExpiresIn = (long)(DateTime.UtcNow - pollExpiresIn).TotalSeconds, 86 86 Multiple = poll.Multiple,
+1
Iceshrimp.Backend/Controllers/Mastodon/ScheduledStatusController.cs
··· 25 25 [Produces(MediaTypeNames.Application.Json)] 26 26 public class ScheduledStatusController(DatabaseContext db, NoteRenderer noteRenderer, NoteService noteService, IHttpContextAccessor httpContextAccessor) : ControllerBase, IScopedService 27 27 { 28 + [HttpGet] 28 29 [Authenticate("read:statuses")] 29 30 [LinkPagination(20, 40)] 30 31 [ProducesResults(HttpStatusCode.OK)]
+13 -13
Iceshrimp.Backend/Controllers/Mastodon/Schemas/Entities/StatusEntity.cs
··· 168 168 169 169 public class Param 170 170 { 171 - [J("text")] public string? Text { get; set; } 172 - [J("in_reply_to_id")] public string? ReplyId { get; set; } 173 - [J("sensitive")] public bool Sensitive { get; set; } = false; 174 - [J("spoiler_text")] public string? Cw { get; set; } 175 - [J("visibility")] public string Visibility { get; set; } = null!; 176 - [J("language")] public string? Language { get; set; } 177 - [J("scheduled_at")] public string? ScheduledAt { get; set; } 178 - [J("media_ids")] public List<string>? MediaIds { get; set; } 179 - [J("local_only")] public bool LocalOnly { get; set; } = false; 180 - [J("quote_id")] public string? QuoteId { get; set; } 181 - [J("reblog_id")] public string? ReblogId { get; set; } 182 - [J("poll")] public PollData? Poll { get; set; } 171 + [J("text")] public string? Text { get; set; } 172 + [J("in_reply_to_id")] public string? ReplyId { get; set; } 173 + [J("sensitive")] public bool Sensitive { get; set; } = false; 174 + [J("spoiler_text")] public string? Cw { get; set; } 175 + [J("visibility")] public string Visibility { get; set; } = null!; 176 + [J("language")] public string? Language { get; set; } 177 + [J("scheduled_at")] public string? ScheduledAt { get; set; } 178 + [J("media_ids")] public List<string>? MediaIds { get; set; } 179 + [J("local_only")] public bool LocalOnly { get; set; } = false; 180 + [J("quote_id")] public string? QuoteId { get; set; } 181 + [J("reblog_id")] public string? ReblogId { get; set; } 182 + [J("poll")] public ScheduledPollData? Poll { get; set; } 183 183 184 - public class PollData 184 + public class ScheduledPollData 185 185 { 186 186 [J("options")] public List<string> Options { get; set; } = null!; 187 187 [J("expires_in")] public long ExpiresIn { get; set; }