this is literally the only other difference
Some checks are pending
/ test-build-and-push (push) Waiting to run
Some checks are pending
/ test-build-and-push (push) Waiting to run
This commit is contained in:
parent
0042e65a56
commit
0d176c7aff
2 changed files with 6 additions and 7 deletions
|
@ -78,12 +78,12 @@ public class UserRenderer(
|
||||||
IsDiscoverable = user.IsExplorable,
|
IsDiscoverable = user.IsExplorable,
|
||||||
Fields = fields?.ToList() ?? [],
|
Fields = fields?.ToList() ?? [],
|
||||||
Emoji = profileEmoji,
|
Emoji = profileEmoji,
|
||||||
Pleroma = flags.IsPleroma.Value
|
Pleroma = flags?.IsPleroma.Value == true
|
||||||
? new PleromaUserExtensions
|
? new PleromaUserExtensions
|
||||||
{
|
{
|
||||||
IsAdmin = user.IsAdmin,
|
IsAdmin = user.IsAdmin,
|
||||||
IsModerator = user.IsModerator
|
IsModerator = user.IsModerator
|
||||||
} : null
|
} : null
|
||||||
};
|
};
|
||||||
|
|
||||||
if (localUser is null && security.Value.PublicPreview == Enums.PublicPreview.RestrictedNoMedia) //TODO
|
if (localUser is null && security.Value.PublicPreview == Enums.PublicPreview.RestrictedNoMedia) //TODO
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
using Iceshrimp.Backend.Controllers.Mastodon.Schemas.Entities;
|
|
||||||
using J = System.Text.Json.Serialization.JsonPropertyNameAttribute;
|
using J = System.Text.Json.Serialization.JsonPropertyNameAttribute;
|
||||||
|
|
||||||
namespace Iceshrimp.Backend.Controllers.Pleroma.Schemas.Entities;
|
namespace Iceshrimp.Backend.Controllers.Pleroma.Schemas.Entities;
|
||||||
|
|
Loading…
Add table
Reference in a new issue