summaryrefslogtreecommitdiffstats
path: root/bot/mentions.php
diff options
context:
space:
mode:
Diffstat (limited to 'bot/mentions.php')
-rwxr-xr-xbot/mentions.php3
1 files changed, 2 insertions, 1 deletions
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);
}
}