Render embedded quoted posts as blockquotes with handle permalink
Fixes #1. Replaces the plain div wrapper and separate "View on Bluesky" link with a <blockquote> element, and makes the @handle the permalink to the quoted post. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit was merged in pull request #3.
This commit is contained in:
@@ -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('<blockquote', $html, 'Quoted post must be wrapped in a blockquote');
|
||||
$this->assertStringNotContainsString('View on Bluesky', $html);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user