- Not tested yet - Undo needs to be extended to also handle undo of follow
This commit is contained in:
parent
7e60188fb5
commit
d84a693b22
6 changed files with 130 additions and 17 deletions
|
@ -33,7 +33,7 @@ func newReaction(db *gorm.DB, opts ...gen.DOOption) reaction {
|
|||
_reaction.DeletedAt = field.NewField(tableName, "deleted_at")
|
||||
_reaction.NoteId = field.NewString(tableName, "note_id")
|
||||
_reaction.ReactorId = field.NewString(tableName, "reactor_id")
|
||||
_reaction.EmoteId = field.NewUint(tableName, "emote_id")
|
||||
_reaction.EmoteId = field.NewField(tableName, "emote_id")
|
||||
_reaction.Note = reactionBelongsToNote{
|
||||
db: db.Session(&gorm.Session{}),
|
||||
|
||||
|
@ -430,7 +430,7 @@ type reaction struct {
|
|||
DeletedAt field.Field
|
||||
NoteId field.String
|
||||
ReactorId field.String
|
||||
EmoteId field.Uint
|
||||
EmoteId field.Field
|
||||
Note reactionBelongsToNote
|
||||
|
||||
Reactor reactionBelongsToReactor
|
||||
|
@ -458,7 +458,7 @@ func (r *reaction) updateTableName(table string) *reaction {
|
|||
r.DeletedAt = field.NewField(table, "deleted_at")
|
||||
r.NoteId = field.NewString(table, "note_id")
|
||||
r.ReactorId = field.NewString(table, "reactor_id")
|
||||
r.EmoteId = field.NewUint(table, "emote_id")
|
||||
r.EmoteId = field.NewField(table, "emote_id")
|
||||
|
||||
r.fillFieldMap()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue