mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-25 04:23:31 -06:00
Add preview card storing to the database
This commit is contained in:
parent
85c32526f2
commit
6169351d22
12 changed files with 228 additions and 55 deletions
7
internal/cache/size.go
vendored
7
internal/cache/size.go
vendored
|
|
@ -395,6 +395,13 @@ func sizeofEmoji() uintptr {
|
|||
}))
|
||||
}
|
||||
|
||||
func sizeofCard() uintptr {
|
||||
// TODO: this implementation need to be extended to contain other fields also.
|
||||
return uintptr(size.Of(>smodel.Card{
|
||||
ID: exampleID,
|
||||
}))
|
||||
}
|
||||
|
||||
func sizeofEmojiCategory() uintptr {
|
||||
return uintptr(size.Of(>smodel.EmojiCategory{
|
||||
ID: exampleID,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue