]> git.mxchange.org Git - friendica.git/commitdiff
Improve how shared posting look on mobile apps
authorMichael <heluecht@pirati.ca>
Tue, 13 Jul 2021 08:30:05 +0000 (08:30 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 13 Jul 2021 08:30:05 +0000 (08:30 +0000)
src/Content/Text/BBCode.php
src/Object/Api/Mastodon/Status.php

index 5f9a3ee78a02512939999e1aa6d0687eca24af03..1de3c0a68dfb8c1b3a3c04123fca4d4749098fc7 100644 (file)
@@ -1057,7 +1057,7 @@ class BBCode
                switch ($simplehtml) {
                        case self::API:
                                $text = ($is_quote_share? '<br>' : '') .
-                               '<p><b><a href="' . $attributes['link'] . '">' . html_entity_decode('&#x2672; ', ENT_QUOTES, 'UTF-8') . ' ' . $author_contact['addr'] . "</a>:</b> </p>\n" .
+                               '<b><a href="' . $attributes['link'] . '">' . html_entity_decode('&#x2672; ', ENT_QUOTES, 'UTF-8') . ' ' . $author_contact['addr'] . "</a>:</b><br>\n" .
                                '<blockquote class="shared_content">' . $content . '</blockquote>';
                                break;
                        case self::DIASPORA:
index 90e8732ce26c9cb81566455af19b28b46f6d0625..468126b4e6cfc816ec84495459cc618f05ab12f7 100644 (file)
@@ -131,7 +131,7 @@ class Status extends BaseDataTransferObject
                $this->muted = $userAttributes->muted;
                $this->bookmarked = $userAttributes->bookmarked;
                $this->pinned = $userAttributes->pinned;
-               $this->content = BBCode::convertForUriId($item['uri-id'], ($item['raw-body'] ?? $item['body']), BBCode::EXTERNAL);
+               $this->content = BBCode::convertForUriId($item['uri-id'], ($item['raw-body'] ?? $item['body']), BBCode::API);
                $this->reblog = $reblog;
                $this->application = $application->toArray();
                $this->account = $account->toArray();