We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c560b35 commit 75b0871Copy full SHA for 75b0871
services/convert/issue.go
@@ -58,7 +58,7 @@ func toIssue(ctx context.Context, doer *user_model.User, issue *issues_model.Iss
58
Comments: issue.NumComments,
59
Created: issue.CreatedUnix.AsTime(),
60
Updated: issue.UpdatedUnix.AsTime(),
61
- PinOrder: issue.PinOrder,
+ PinOrder: util.Iif(issue.PinOrder == -1, 0, issue.PinOrder), // -1 means loaded with no pin order
62
}
63
64
if issue.Repo != nil {
0 commit comments