mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-09-15 18:56:59 +00: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
|
@ -61,7 +61,7 @@ func (o *topic) 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.forgejoTopic); err != nil {
|
||||
panic(fmt.Errorf("topic %v %w", id, err))
|
||||
|
@ -86,7 +86,7 @@ func (o *topic) Put(ctx context.Context) generic.NodeID {
|
|||
panic(err)
|
||||
}
|
||||
o.Trace("topic created %d", o.forgejoTopic.ID)
|
||||
return generic.NodeID(fmt.Sprintf("%d", o.forgejoTopic.ID))
|
||||
return generic.NewNodeID(o.forgejoTopic.ID)
|
||||
}
|
||||
|
||||
func (o *topic) Delete(ctx context.Context) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue