From dc338dc881ead40723f0540aac7fe894f58b174d Mon Sep 17 00:00:00 2001 From: Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com> Date: Sun, 9 May 2021 20:34:27 +0200 Subject: Webfinger + Small fixes (#20) --- internal/db/pg.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/db/pg.go') diff --git a/internal/db/pg.go b/internal/db/pg.go index f59103af7..c0fbcc9e0 100644 --- a/internal/db/pg.go +++ b/internal/db/pg.go @@ -344,8 +344,8 @@ func (ps *postgresService) CreateInstanceAccount() error { func (ps *postgresService) CreateInstanceInstance() error { i := >smodel.Instance{ Domain: ps.config.Host, - Title: ps.config.Host, - URI: fmt.Sprintf("%s://%s", ps.config.Protocol, ps.config.Host), + Title: ps.config.Host, + URI: fmt.Sprintf("%s://%s", ps.config.Protocol, ps.config.Host), } inserted, err := ps.conn.Model(i).Where("domain = ?", ps.config.Host).SelectOrInsert() if err != nil { @@ -354,7 +354,7 @@ func (ps *postgresService) CreateInstanceInstance() error { if inserted { ps.log.Infof("created instance instance %s with id %s", ps.config.Host, i.ID) } else { - ps.log.Infof("instance instance %s already exists with id %s", ps.config.Host, i.ID) + ps.log.Infof("instance instance %s already exists with id %s", ps.config.Host, i.ID) } return nil } -- cgit v1.2.3