Skip to content

Commit

Permalink
(Forgot I don't need this line here lol)
Browse files Browse the repository at this point in the history
  • Loading branch information
SpeedyD committed Oct 28, 2024
1 parent 01d6863 commit e1a5ff5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/Helpers/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,6 @@ function parsePrompts($text, &$prompts) {
$prompt = App\Models\Prompt\Prompt::where('id', $match)->first();
if ($prompt) {
$prompts[] = $prompt;
$prompt_hasimg = $prompt->has_image ? '<a class="badge" style="border-radius:.5em;" href="'.$prompt->idUrl.'"><img class="my-1 modal-image" style="max-height:100%; height:150px; border-radius:.5em;" src="'.$prompt->imageUrl.'" alt="'.$prompt->name.'" /></a></ br>' : '';
$text = preg_replace('/\[prompt='.$match.'\]/', '<a href="'.$prompt->idUrl.'"><img src="'.$prompt->imageUrl.'" class="mw-100" alt="'.$prompt->name.'"></a>', $text);
}
}
Expand Down

0 comments on commit e1a5ff5

Please sign in to comment.