diff options
author | 2022-02-06 14:07:38 +0100 | |
---|---|---|
committer | 2022-02-06 14:07:38 +0100 | |
commit | 85b4f96263cd63b21416283dc31763d2fd9ed30d (patch) | |
tree | 11420cac0a65c2ec1c873b560d0417a03440bb38 /internal/typeutils/internaltoas.go | |
parent | [feature] Rework timeline code to make it useful for more than just statuses ... (diff) | |
download | gotosocial-85b4f96263cd63b21416283dc31763d2fd9ed30d.tar.xz |
if accountDomain isn't set, use Host value instead (#380)
Diffstat (limited to 'internal/typeutils/internaltoas.go')
-rw-r--r-- | internal/typeutils/internaltoas.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/typeutils/internaltoas.go b/internal/typeutils/internaltoas.go index b3aaafff0..3adf406cf 100644 --- a/internal/typeutils/internaltoas.go +++ b/internal/typeutils/internaltoas.go @@ -623,6 +623,9 @@ func (c *converter) MentionToAS(ctx context.Context, m *gtsmodel.Mention) (vocab var domain string if m.TargetAccount.Domain == "" { accountDomain := viper.GetString(config.Keys.AccountDomain) + if accountDomain == "" { + accountDomain = viper.GetString(config.Keys.Host) + } domain = accountDomain } else { domain = m.TargetAccount.Domain |