diff --git a/redditimages.own b/redditimages.own
index 3a1b3b9..5cb361e 100644
--- a/redditimages.own
+++ b/redditimages.own
@@ -12,6 +12,7 @@ media = stream(subreddits)
.filter(def(p) = reduce([".jpg", ".png"], false, def(acc, ext) = acc || indexOf(p.url, ext) > 0))
.filter(::isPostUnique)
//.peek(def(p) = bot.sendPhoto(config.peer, p.url))
+ .limit(10)
.peek(::addPost)
.map(def(p) = {
"type": "photo",
@@ -19,7 +20,6 @@ media = stream(subreddits)
"caption": getCaption(p),
"parse_mode": "html"
})
- .limit(10)
.toArray()
debug(jsonencode(media))
@@ -52,9 +52,9 @@ def getCaption(post) {
}
return sprintf(
"%s\n" +
- "🗨 Comments%s\n" +
+ "🗨 Comments%s\n" +
"🔎 SauceNAO, " +
- "Yandex",
+ "Alamy",
safe(post.url), safe(post.title),
safe(post.permalink), tag,
urlencode(post.url),