Skip to content

Commit

Permalink
Prune PC biography visibility data on extract (foundryvtt#10146)
Browse files Browse the repository at this point in the history
  • Loading branch information
stwlam committed Sep 17, 2023
1 parent 762da30 commit 6165dd8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/lib/extractor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,9 @@ class PackExtractor {
}
}

if (docSource.type === "npc") {
if (docSource.type === "character") {
delete (docSource.system.details.biography as { visibility?: unknown }).visibility;
} else if (docSource.type === "npc") {
const source: Partial<NPCSystemSource["details"]["source"]> =
docSource.system.details.source;
if (!source.author?.trim()) delete source.author;
Expand Down

0 comments on commit 6165dd8

Please sign in to comment.