Ken hai 1 semana
pai
achega
5d5e34e126
Modificáronse 1 ficheiros con 3 adicións e 7 borrados
  1. 3 7
      app/Services/BaseService.php

+ 3 - 7
app/Services/BaseService.php

@@ -205,13 +205,9 @@ class BaseService
             if (count($texts) == 0) {
                 $texts[] = $item . "\n";
             } else if (strlen($texts[count($texts) - 1] . $item) <= 4096) {
-                if (!empty($image)) {
-                    if (count($texts) == 1) {
-                        if (strlen($texts[count($texts) - 1] . $item) <= 1024) {
-                            $texts[count($texts) - 1] .= $item . "\n";
-                        } else {
-                            $texts[] = $item . "\n";
-                        }
+                if (!empty($image) && count($texts) == 1) {
+                    if (strlen($texts[0] . $item) <= 1024) {
+                        $texts[0] .= $item . "\n";
                     } else {
                         $texts[] = $item . "\n";
                     }