Add inbox follow request handling
Some checks failed
/ docker (push) Failing after 3m6s

- Not tested yet
- Undo needs to be extended to also handle undo of follow
This commit is contained in:
Melody Becker 2025-05-08 08:32:02 +02:00
parent 7e60188fb5
commit d84a693b22
Signed by: mstar
SSH key fingerprint: SHA256:vkXfS9FG2pVNVfvDrzd1VW9n8VJzqqdKQGljxxX8uK8
6 changed files with 130 additions and 17 deletions

View file

@ -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()