mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-03 18:02:28 +02:00
feat: upgrade F3 to v3.7.0
* support changing label colors * support changing issue state * use helpers to keep type conversions DRY * drop the x/exp license because it is no longer used The tests are performed by the gof3 compliance suite
This commit is contained in:
parent
4760c5029d
commit
b26a0aea19
23 changed files with 50 additions and 56 deletions
|
@ -67,7 +67,7 @@ func (o *reaction) Get(ctx context.Context) bool {
|
|||
node := o.GetNode()
|
||||
o.Trace("%s", node.GetID())
|
||||
|
||||
id := f3_util.ParseInt(string(node.GetID()))
|
||||
id := node.GetID().Int64()
|
||||
|
||||
if has, err := db.GetEngine(ctx).Where("ID = ?", id).Get(o.forgejoReaction); err != nil {
|
||||
panic(fmt.Errorf("reaction %v %w", id, err))
|
||||
|
@ -115,7 +115,7 @@ func (o *reaction) Put(ctx context.Context) generic.NodeID {
|
|||
panic(err)
|
||||
}
|
||||
o.Trace("reaction created %d", o.forgejoReaction.ID)
|
||||
return generic.NodeID(fmt.Sprintf("%d", o.forgejoReaction.ID))
|
||||
return generic.NewNodeID(o.forgejoReaction.ID)
|
||||
}
|
||||
|
||||
func (o *reaction) Delete(ctx context.Context) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue