summaryrefslogtreecommitdiffstats
path: root/bot/mentions.php
diff options
context:
space:
mode:
authorsijanec <sijanecantonluka@gmail.com>2020-10-18 02:30:08 +0200
committersijanec <sijanecantonluka@gmail.com>2020-10-18 02:30:08 +0200
commit91f04705dc4fbdb06e75b9fc272587ed68e89fc9 (patch)
tree95ec28dcd2ad4e8cd1098af7d3d84f50ba6a00d5 /bot/mentions.php
parentadded bot (diff)
downloadoldredditclient-91f04705dc4fbdb06e75b9fc272587ed68e89fc9.tar
oldredditclient-91f04705dc4fbdb06e75b9fc272587ed68e89fc9.tar.gz
oldredditclient-91f04705dc4fbdb06e75b9fc272587ed68e89fc9.tar.bz2
oldredditclient-91f04705dc4fbdb06e75b9fc272587ed68e89fc9.tar.lz
oldredditclient-91f04705dc4fbdb06e75b9fc272587ed68e89fc9.tar.xz
oldredditclient-91f04705dc4fbdb06e75b9fc272587ed68e89fc9.tar.zst
oldredditclient-91f04705dc4fbdb06e75b9fc272587ed68e89fc9.zip
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);
}
}