mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-04 20:38:07 -06:00
Working on emojis a bit more
This commit is contained in:
parent
046c5e91fb
commit
de9718c566
8 changed files with 154 additions and 58 deletions
|
|
@ -317,12 +317,12 @@ func (ps *postgresService) CreateInstanceAccount() error {
|
|||
instanceAccount := >smodel.Account{
|
||||
Username: username,
|
||||
}
|
||||
inserted, err := ps.conn.Model(instanceAccount).Where("username = ?", username).SelectOrInsert();
|
||||
inserted, err := ps.conn.Model(instanceAccount).Where("username = ?", username).SelectOrInsert()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if inserted {
|
||||
ps.log.Infof("created instance account %s with id %s",username, instanceAccount.ID)
|
||||
ps.log.Infof("created instance account %s with id %s", username, instanceAccount.ID)
|
||||
} else {
|
||||
ps.log.Infof("instance account %s already exists with id %s", username, instanceAccount.ID)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue