- Clean up some logging - Properly store likes in db
This commit is contained in:
parent
c7f875a9c5
commit
03ca524c99
12 changed files with 222 additions and 44 deletions
|
@ -2,7 +2,7 @@ package models
|
|||
|
||||
type Activity struct {
|
||||
Id string `gorm:"primarykey"`
|
||||
Type string `gorm:"type:activitystreams_activity_type"`
|
||||
Type string // `gorm:"type:activitystreams_activity_type"`
|
||||
ObjectId string
|
||||
ObjectType uint32 // Target type: ActivitystreamsActivityTargetType
|
||||
}
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
package models
|
||||
|
||||
import "gorm.io/gorm"
|
||||
import (
|
||||
"database/sql"
|
||||
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// A Reaction is a user liking a note using an emote
|
||||
type Reaction struct {
|
||||
|
@ -9,6 +13,6 @@ type Reaction struct {
|
|||
NoteId string
|
||||
Reactor User
|
||||
ReactorId string
|
||||
Emote Emote
|
||||
EmoteId uint
|
||||
Emote *Emote // Emote is optional. If not set, use the default emote of the server
|
||||
EmoteId sql.NullInt64
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue