[bugfix] Refactor parse mention, fix local mention bug (#2657)

* [bugfix] Refactor parse mention, fix local mention bug

* originAccount -> originAcct
This commit is contained in:
tobi 2024-02-19 04:48:20 +01:00 committed by GitHub
commit a314d2b539
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 233 additions and 97 deletions

View file

@ -74,7 +74,7 @@ func (suite *TextStandardTestSuite) SetupTest() {
suite.db = testrig.NewTestDB(&state)
federator := testrig.NewTestFederator(&state, testrig.NewTestTransportController(&state, testrig.NewMockHTTPClient(nil, "../../testrig/media")), nil)
suite.parseMention = processing.GetParseMentionFunc(suite.db, federator)
suite.parseMention = processing.GetParseMentionFunc(&state, federator)
suite.formatter = text.NewFormatter(suite.db)