mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-07 09:28:07 -06:00
[bugfix] Fix Postgres emoji delete, emoji category change (#2570)
* [bugfix] Fix Postgres emoji delete, emoji category change * revert trace logging * caching issue * update tests
This commit is contained in:
parent
14b684b2b5
commit
aa8bbe6ad2
15 changed files with 500 additions and 233 deletions
|
|
@ -44,3 +44,10 @@ type Emoji struct {
|
|||
CategoryID string `bun:"type:CHAR(26),nullzero"` // ID of the category this emoji belongs to.
|
||||
Cached *bool `bun:",nullzero,notnull,default:false"`
|
||||
}
|
||||
|
||||
// IsLocal returns true if the emoji is
|
||||
// local to this instance., ie., it did
|
||||
// not originate from a remote instance.
|
||||
func (e *Emoji) IsLocal() bool {
|
||||
return e.Domain == ""
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue