summaryrefslogtreecommitdiff
path: root/internal/transport/deliver.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/transport/deliver.go')
-rw-r--r--internal/transport/deliver.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/transport/deliver.go b/internal/transport/deliver.go
index bacaa9b3a..0405116ad 100644
--- a/internal/transport/deliver.go
+++ b/internal/transport/deliver.go
@@ -27,7 +27,6 @@ import (
"strings"
"sync"
- "github.com/spf13/viper"
"github.com/superseriousbusiness/gotosocial/internal/config"
)
@@ -69,7 +68,7 @@ outer:
func (t *transport) Deliver(ctx context.Context, b []byte, to *url.URL) error {
// if the 'to' host is our own, just skip this delivery since we by definition already have the message!
- if to.Host == viper.GetString(config.Keys.Host) || to.Host == viper.GetString(config.Keys.AccountDomain) {
+ if to.Host == config.GetHost() || to.Host == config.GetAccountDomain() {
return nil
}