chore: detach emojis on delete

This commit is contained in:
Paul Makles
2022-07-15 14:01:59 +01:00
parent 4f73e43a03
commit d96c9f62c4
6 changed files with 33 additions and 10 deletions

View File

@@ -28,6 +28,7 @@ pub async fn delete_emoji(db: &Db, user: User, id: Ref) -> Result<EmptyResponse>
.throw_permission(db, Permission::ManageCustomisation)
.await?;
}
EmojiParent::Detached => return Ok(EmptyResponse),
};
}