Restore explicit Venice catalog selection: venice.js
This commit is contained in:
1 parent
b460c3ac07
commit
200255b544
1 file changed
+3
-3
@@ -261,9 +261,9 @@ export class Venice {
|
||||
return { amount: typeof amount === "number" ? amount : null, currency, canConsume: !!(d && d.canConsume) };
|
||||
}
|
||||
|
||||
/** Public Venice characters as returned by the API, without a Havre content-category filter. */
|
||||
async characterPage({ search = "", limit = 24, offset = 0, sort = "", tags = "" } = {}) {
|
||||
const q = new URLSearchParams({ limit: String(limit), offset: String(offset) });
|
||||
/** The selected Venice catalog: standard by default, or 18+. This is a search selection, not a permission gate. */
|
||||
async characterPage({ search = "", limit = 24, offset = 0, sort = "", tags = "", adult = false } = {}) {
|
||||
const q = new URLSearchParams({ limit: String(limit), offset: String(offset), isAdult: String(!!adult) });
|
||||
if (search) q.set("search", search);
|
||||
if (sort) q.set("sortBy", sort);
|
||||
if (tags) q.set("tags", tags);
|
||||
|
||||
Reference in new issue
Block a user