Move some extension methods into their respective class files

This commit is contained in:
Ske
2020-08-05 20:24:51 +02:00
parent 7ab5e66d7b
commit a0fc9d3826
7 changed files with 80 additions and 88 deletions

View File

@@ -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);
}
}