Merge branch 'main' into feature/groups

This commit is contained in:
Ske
2020-08-21 18:31:22 +02:00
42 changed files with 359 additions and 219 deletions

View File

@@ -21,4 +21,13 @@ namespace PluralKit.Core
public Instant Created { get; private set; }
}
public static class PKGroupExt
{
public static string? DescriptionFor(this PKGroup group, LookupContext ctx) =>
group.DescriptionPrivacy.Get(ctx, group.Description);
public static string? IconFor(this PKGroup group, LookupContext ctx) =>
group.IconPrivacy.Get(ctx, group.Icon);
}
}