Revert "fix: regression that dropped q tags from quote reposts"

This reverts commit 5865b000c0.
This commit is contained in:
Daniel D’Aquino
2024-11-01 11:25:24 -07:00
parent b1b032d905
commit 3b62945e5b
3 changed files with 49 additions and 15 deletions

View File

@@ -153,13 +153,7 @@ final class PostViewTests: XCTestCase {
XCTAssertNil(newManuallyEditedContent.attribute(.link, at: 11, effectiveRange: nil))
})
}
func testQuoteRepost() {
let post = build_post(state: test_damus_state, post: .init(), action: .quoting(test_note), uploadedMedias: [], pubkeys: [])
XCTAssertEqual(post.tags, [["q", test_note.id.hex()]])
}
func testMentionLinkEditorHandling_noWhitespaceAfterLink2_addsWhitespace() {
var content: NSMutableAttributedString