From 91f04705dc4fbdb06e75b9fc272587ed68e89fc9 Mon Sep 17 00:00:00 2001 From: sijanec Date: Sun, 18 Oct 2020 02:30:08 +0200 Subject: fix bot --- bot/mentions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bot/mentions.php') diff --git a/bot/mentions.php b/bot/mentions.php index 0b4345e..3b87abf 100755 --- a/bot/mentions.php +++ b/bot/mentions.php @@ -44,8 +44,9 @@ } else { $imgs = ""; foreach ($post["data"]["media_metadata"] as $metadata) { - $imgs .= get_string_between($metadata["s"]["u"], "dd.it/", "?width="); + $imgs .= get_string_between($metadata["s"]["u"], "dd.it/", "?width=").","; } + $imgs = substr($imgs, 0, -1); // da odstranimo zadnjo vejico $o->comment("[https://imglinkbot.ΕΎ.ga/?i=$imgs](https://imglinkbot.xn--jha.ga/?i=$imgs)$botsignature", $parent); } } -- cgit v1.2.3