Sometimes there are duplicate images if I use the "Flickr random photos" block...
Probably the same photo was selected randomly twice.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | paul.booker.205391.patch | 753 bytes | Anonymous (not verified) |
| #1 | flickr_block_duplicate.patch | 1001 bytes | bpocanada |
| flickr_block.PNG | 127.01 KB | biagio3d |
Comments
Comment #1
bpocanada commentedHere is a patch for duplicate photos in random block.
Comment #2
andrewlevine commentedlooks good to me. couldn't test because this functionality isn't supported by the flickr api anymore. Get the error "Flickr error 3: Parameterless searches have been disabled. Please use flickr.photos.getRecent instead." I will open a separate ticket for that though.
Let's get this committed though.
Comment #3
drewish commentedi don't think this is correct. the $index that's being used to find duplicates is per page and select from multiple pages. i think the correct key for the array would be the photo's id.
Comment #4
Anonymous (not verified) commentedPlease let me know how you get on with this patch .
Thanks, Paul
Comment #5
Anonymous (not verified) commentedCommited the changes.
I accidentally hit the submit button while writing the commit message,
sorry about that.
Best, Paul