Skip to content

Commit 75b0871

Browse files
committed
Fix test
1 parent c560b35 commit 75b0871

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/convert/issue.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func toIssue(ctx context.Context, doer *user_model.User, issue *issues_model.Iss
5858
Comments: issue.NumComments,
5959
Created: issue.CreatedUnix.AsTime(),
6060
Updated: issue.UpdatedUnix.AsTime(),
61-
PinOrder: issue.PinOrder,
61+
PinOrder: util.Iif(issue.PinOrder == -1, 0, issue.PinOrder), // -1 means loaded with no pin order
6262
}
6363

6464
if issue.Repo != nil {

0 commit comments

Comments
 (0)