aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/includes
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-03-20 09:31:17 +0100
committerMario <mario@mariovavti.com>2024-03-20 09:31:17 +0100
commitb3c260a14529c5c797df50eeae0dacaa931436a8 (patch)
tree6e7b4d56620514b6814c0434d6a9be6d33c57d15 /tests/unit/includes
parent8754f72e63ea0fd9067c20104a2b068e5c518d0a (diff)
downloadvolse-hubzilla-b3c260a14529c5c797df50eeae0dacaa931436a8.tar.gz
volse-hubzilla-b3c260a14529c5c797df50eeae0dacaa931436a8.tar.bz2
volse-hubzilla-b3c260a14529c5c797df50eeae0dacaa931436a8.zip
fix reshares from streams loosing image
Diffstat (limited to 'tests/unit/includes')
-rw-r--r--tests/unit/includes/BBCodeTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/unit/includes/BBCodeTest.php b/tests/unit/includes/BBCodeTest.php
index 0da50f77a..6f79c45f4 100644
--- a/tests/unit/includes/BBCodeTest.php
+++ b/tests/unit/includes/BBCodeTest.php
@@ -198,6 +198,10 @@ class BBCodeTest extends UnitTestCase {
'nested tags with ampersand and new line' => [
"<b>\n<i>foo & bar</i></b>",
'[b] [i]foo &amp; bar[/i][/b]'
+ ],
+ 'html reshares from streams' => [
+ '<div><div><a href="https://example.com"><img src="https://example.com/image.jpg" alt="image/photo"></a> shared something</div>something</div>',
+ '[url=https://example.com][img=https://example.com/image.jpg]image/photo[/img][/url] shared something' . "\n" . 'something'
]
];
}