Add the advanced search drawer, adaptive paging, and zoom
This commit is contained in:
@@ -106,6 +106,8 @@ export interface MediaFilterOptions {
|
||||
kind?: MediaKind;
|
||||
source?: string;
|
||||
authorId?: string;
|
||||
authorIds?: string[];
|
||||
cachedOnly?: boolean;
|
||||
aspect?: string;
|
||||
resolution?: string;
|
||||
after?: string;
|
||||
@@ -484,6 +486,13 @@ export class ScrapeStore {
|
||||
conditions.push("author_id = ?");
|
||||
values.push(options.authorId);
|
||||
}
|
||||
if (options.authorIds?.length) {
|
||||
conditions.push(`author_id IN (${options.authorIds.map(() => "?").join(", ")})`);
|
||||
values.push(...options.authorIds);
|
||||
}
|
||||
if (options.cachedOnly) {
|
||||
conditions.push("preview_hash IS NOT NULL");
|
||||
}
|
||||
if (options.after) {
|
||||
conditions.push("posted_at >= ?");
|
||||
values.push(options.after);
|
||||
|
||||
Reference in New Issue
Block a user