mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 04:52:24 -05:00
[bugfix] Refactor parse mention, fix local mention bug (#2657)
* [bugfix] Refactor parse mention, fix local mention bug * originAccount -> originAcct
This commit is contained in:
parent
b14cd645f9
commit
a314d2b539
8 changed files with 233 additions and 97 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue