diff --git a/extension.php b/extension.php index 8184632..0d74509 100644 --- a/extension.php +++ b/extension.php @@ -376,17 +376,14 @@ final class BlueskyThreadsExtension extends Minz_Extension { } return << +
HTML; } diff --git a/tests/BlueskyThreadsTest.php b/tests/BlueskyThreadsTest.php index 9cd4648..01dff6f 100644 --- a/tests/BlueskyThreadsTest.php +++ b/tests/BlueskyThreadsTest.php @@ -164,14 +164,15 @@ class BlueskyThreadsTest extends TestCase { 'Quoted post text must be rendered as an embed'); } - /** Quoted posts include a "View on Bluesky" link; thread posts do not. */ + /** Quoted posts use a blockquote with a handle permalink; thread posts have no permalink. */ public function testViewOnBskyLinksArePresent(): void { $data = json_decode(file_get_contents(__DIR__ . '/fixtures/thread_3mhtk7awhrp26.json'), true); $html = $this->call('renderThread', $data['thread'], true); $this->assertStringNotContainsString('3mhtk7awhrp26', $html, 'Thread post rkey must not appear as a permalink'); - $this->assertStringContainsString('3mhtjo3rtkn26', $html, 'Quoted post rkey must appear in its View on Bluesky link'); - $this->assertStringContainsString('View on Bluesky', $html); + $this->assertStringContainsString('3mhtjo3rtkn26', $html, 'Quoted post rkey must appear in the handle permalink'); + $this->assertStringContainsString('{$displayName} - @{$this->e($handle)} + @{$this->e($handle)}{$text}{$embedsHtml} - - +
assertStringNotContainsString('View on Bluesky', $html); } /**