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:
1 parent
dc21b6139c
commit
db2ec0a00a
11 files changed
+127
-342
No files matched your search
@@ -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