People: Add subject cache and show real name in logs #1438 #2182

This commit is contained in:
Michael Mayer
2022-04-04 00:02:08 +02:00
parent 41b252d820
commit 686f6bc47c
32 changed files with 396 additions and 102 deletions

View File

@@ -115,7 +115,7 @@ func (m *Label) Restore() error {
// Update a label property in the database.
func (m *Label) Update(attr string, value interface{}) error {
return UnscopedDb().Model(m).UpdateColumn(attr, value).Error
return UnscopedDb().Model(m).Update(attr, value).Error
}
// FirstOrCreateLabel returns the existing label, inserts a new label or nil in case of errors.