Fix npub mention bugs, fix slowness when parsing large posts
Switch the post parser to use the same code as the content parser. This was causing many issues, including performance issues. Changelog-Fixed: Fix lag when creating large posts Changelog-Fixed: Fix npub mentions failing to parse in some cases Changelog-Added: Add r tag when mentioning a url Changelog-Removed: Remove old @ and & hex key mentions
This commit is contained in:
@@ -52,7 +52,7 @@ class DamusParseContentTests: XCTestCase {
|
||||
return
|
||||
}
|
||||
|
||||
if currentBlock.is_mention {
|
||||
if currentBlock.is_mention != nil {
|
||||
XCTAssert(isMentionBlockSet.contains(i))
|
||||
} else {
|
||||
XCTAssert(!isMentionBlockSet.contains(i))
|
||||
|
||||
Reference in New Issue
Block a user