mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
fix: missing checkownsystem in pk;s icon
This commit is contained in:
parent
2c4fbf249f
commit
50f9465826
1 changed files with 2 additions and 5 deletions
|
|
@ -81,8 +81,6 @@ public class SystemEdit
|
|||
if (isOwnSystem)
|
||||
noDescriptionSetMessage += " To set one, type `pk;s description <description>`.";
|
||||
|
||||
ctx.CheckSystem().CheckOwnSystem(target);
|
||||
|
||||
if (ctx.MatchRaw())
|
||||
{
|
||||
if (target.Description == null)
|
||||
|
|
@ -345,9 +343,6 @@ public class SystemEdit
|
|||
|
||||
public async Task Avatar(Context ctx, PKSystem target)
|
||||
{
|
||||
if (target == null)
|
||||
ctx.CheckSystem();
|
||||
|
||||
async Task ClearIcon()
|
||||
{
|
||||
ctx.CheckOwnSystem(target);
|
||||
|
|
@ -358,6 +353,8 @@ public class SystemEdit
|
|||
|
||||
async Task SetIcon(ParsedImage img)
|
||||
{
|
||||
ctx.CheckOwnSystem(target);
|
||||
|
||||
await AvatarUtils.VerifyAvatarOrThrow(_client, img.Url);
|
||||
|
||||
await _repo.UpdateSystem(target.Id, new SystemPatch { AvatarUrl = img.Url });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue