mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
Move some extension methods into their respective class files
This commit is contained in:
parent
7ab5e66d7b
commit
a0fc9d3826
7 changed files with 80 additions and 88 deletions
|
|
@ -25,4 +25,10 @@ namespace PluralKit.Core {
|
|||
|
||||
[JsonIgnore] public DateTimeZone Zone => DateTimeZoneProviders.Tzdb.GetZoneOrNull(UiTz);
|
||||
}
|
||||
|
||||
public static class PKSystemExt
|
||||
{
|
||||
public static string DescriptionFor(this PKSystem system, LookupContext ctx) =>
|
||||
system.DescriptionPrivacy.Get(ctx, system.Description);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue