Update mastodonapi.php
This commit is contained in:
parent
a187a962ef
commit
dd8a402bb0
1 changed files with 1 additions and 1 deletions
|
|
@ -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> ", "#"), $content);
|
||||
$imageMarkdown = "";
|
||||
$featuredImage = $featuredImageAlt = "";
|
||||
foreach ( $images as $i => $filename ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue