From 6cec6f044a1c74a2564b743bdb84d092888f9672 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 18 Sep 2024 09:38:55 -0400 Subject: [PATCH] Restore content on unban (#278) * Updating remove_or_restore_data field. * 0.20.0-alpha.1 * 0.20.0-alpha.3 * 0.20.0-alpha.4 --- package.json | 2 +- src/types/BanFromCommunity.ts | 2 +- src/types/BanPerson.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 6654159..8aa4aad 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.19.6-beta.1", + "version": "0.20.0-alpha.4", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", diff --git a/src/types/BanFromCommunity.ts b/src/types/BanFromCommunity.ts index bcbf1ed..8571430 100644 --- a/src/types/BanFromCommunity.ts +++ b/src/types/BanFromCommunity.ts @@ -6,7 +6,7 @@ export interface BanFromCommunity { community_id: CommunityId; person_id: PersonId; ban: boolean; - remove_data?: boolean; + remove_or_restore_data?: boolean; reason?: string; expires?: number; } diff --git a/src/types/BanPerson.ts b/src/types/BanPerson.ts index 57195ed..bfd1bba 100644 --- a/src/types/BanPerson.ts +++ b/src/types/BanPerson.ts @@ -4,7 +4,7 @@ import type { PersonId } from "./PersonId"; export interface BanPerson { person_id: PersonId; ban: boolean; - remove_data?: boolean; + remove_or_restore_data?: boolean; reason?: string; expires?: number; }