[bugfix] Prevent URL + URI for same account being used as alias target (#2545)

* [bugfix] Ensure URL and URI for same account can't both be provided as alias

* test whoopsie from previous PR
This commit is contained in:
tobi 2024-01-20 12:45:43 +01:00 committed by GitHub
commit b2cacd6b01
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 32 additions and 15 deletions

View file

@ -631,7 +631,7 @@ func (suite *ASToInternalTestSuite) TestParseHonkAccount() {
// Clear caches.
suite.state.Caches.GTS = cache.GTSCaches{}
suite.state.Caches.GTS.Init()
suite.state.Caches.Init()
dbAcct, err = suite.db.GetAccountByID(ctx, acct.ID)
if err != nil {