Commit f59ae846 authored by nanahira's avatar nanahira

fix

parent ef4a33b5
......@@ -53,7 +53,7 @@ export class PicSourceInstance extends PicSource {
if (!matchingData.length) {
return;
}
const pic = Random.pick(data);
const pic = Random.pick(matchingData);
return {
url: this.config.useOriginal ? pic.file_url : pic.sample_url,
description: `#${pic.id} ${pic.tags} by ${pic.author}`,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment