Flow and modularization refactor. Added duplicates option and applying limit after fetch.
This commit is contained in:
@@ -10,7 +10,7 @@ function imgurAlbum(post) {
|
||||
'Authorization': `Client-ID ${config.methods.imgur.clientId}`
|
||||
}
|
||||
}).then(res => res.json()).then(res => {
|
||||
const extract = config.patterns.album.extractSingleItem && res.data.images.length === 1;
|
||||
const extract = config.library.album.extractSingleItem && res.data.images.length === 1;
|
||||
|
||||
return {
|
||||
album: extract ? null : {
|
||||
|
||||
Reference in New Issue
Block a user