[backend/akko-client] Expose required pleroma.emoji_reactions field
This commit is contained in:
parent
326ee6d4e2
commit
e3a41c6190
3 changed files with 17 additions and 1 deletions
|
@ -161,7 +161,11 @@ public class NoteRenderer(
|
|||
Emojis = noteEmoji,
|
||||
Poll = poll,
|
||||
Reactions = reactions,
|
||||
Filtered = filterResult
|
||||
Filtered = filterResult,
|
||||
|
||||
Pleroma = new() {
|
||||
Reactions = reactions
|
||||
}
|
||||
};
|
||||
|
||||
return res;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
using System.Text.Json.Serialization;
|
||||
using Iceshrimp.Backend.Controllers.Pleroma.Schemas.Entities;
|
||||
using Iceshrimp.Backend.Core.Database;
|
||||
using Iceshrimp.Backend.Core.Database.Tables;
|
||||
using Iceshrimp.Backend.Core.Middleware;
|
||||
|
@ -55,6 +56,8 @@ public class StatusEntity : IEntity, ICloneable
|
|||
public object Clone() => MemberwiseClone();
|
||||
[J("id")] public required string Id { get; set; }
|
||||
|
||||
[J("pleroma")] public required PleromaStatusExtensions Pleroma { get; set; }
|
||||
|
||||
public static string EncodeVisibility(Note.NoteVisibility visibility)
|
||||
{
|
||||
return visibility switch
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
using Iceshrimp.Backend.Controllers.Mastodon.Schemas.Entities;
|
||||
using J = System.Text.Json.Serialization.JsonPropertyNameAttribute;
|
||||
|
||||
namespace Iceshrimp.Backend.Controllers.Pleroma.Schemas.Entities;
|
||||
|
||||
public class PleromaStatusExtensions
|
||||
{
|
||||
[J("emoji_reactions")] public required List<ReactionEntity> Reactions { get; set; }
|
||||
}
|
Loading…
Add table
Reference in a new issue