Skip to content

Commit

Permalink
getRandom: add contentFilter param
Browse files Browse the repository at this point in the history
Fixes #168
  • Loading branch information
OliverJAsh committed Apr 5, 2021
1 parent 0cc17f2 commit 4141ca3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/methods/photos/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,20 @@ export const getRandom = {
handleRequest: createRequestHandler(
({
collectionIds,
contentFilter,
...queryParams
}: {
collectionIds?: string[];
featured?: boolean;
username?: string;
query?: string;
contentFilter?: 'low' | 'high',
count?: number;
} & OrientationParam = {}) => ({
pathname: `${PHOTOS_PATH_PREFIX}/random`,
query: compactDefined({
...queryParams,
content_filter: contentFilter,
...Query.getCollections(collectionIds),
}),
headers: {
Expand Down

0 comments on commit 4141ca3

Please sign in to comment.