More work on getting auth fetch verification working
This commit is contained in:
parent
7eac1db475
commit
9957ba8302
12 changed files with 434 additions and 205 deletions
|
@ -14,6 +14,10 @@ import (
|
|||
"git.mstar.dev/mstar/linstrom/storage-new/models"
|
||||
)
|
||||
|
||||
// ID of the server actor account in the db.
|
||||
// Set by InsertSelf
|
||||
var ServerActorId = ""
|
||||
|
||||
func InsertSelf() error {
|
||||
if err := insertRoles(); err != nil {
|
||||
return other.Error("storage", "failed to save/update default roles", err)
|
||||
|
@ -30,6 +34,7 @@ func InsertSelf() error {
|
|||
if err != nil {
|
||||
return other.Error("storage", "failed to save/update self user", err)
|
||||
}
|
||||
ServerActorId = user.ID
|
||||
if err = insertUserPronoun(user); err != nil {
|
||||
return other.Error("storage", "failed to save/update self user pronoun", err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue