Update mastodonapi.php

This commit is contained in:
simonpipe 2026-01-07 19:26:18 +01:00
parent a187a962ef
commit dd8a402bb0

View file

@ -191,7 +191,7 @@ class YellowMastodonapi {
$date = new DateTime($dateTime);
$pub = $date->format("Y-m-d H:i:s");
$content = trim(html_entity_decode(strip_tags(str_replace(array("<br>", "</p>"), array("\n", "</p>\n"), $html)), ENT_QUOTES | ENT_HTML5, "UTF-8"));
$content = str_replace("\n", "\n> ", $content);
$content = str_replace(array("\n", "#"), array("\n> ", "&#35;"), $content);
$imageMarkdown = "";
$featuredImage = $featuredImageAlt = "";
foreach ( $images as $i => $filename ) {