File tree 3 files changed +11
-2
lines changed
routers/api/v1/activitypub 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,15 @@ func AuthorizeInteraction(ctx *context.Context) {
65
65
return
66
66
}
67
67
ctx .Redirect (username + "/" + reponame )
68
+ case forgefed .TicketType :
69
+ err = forgefed .OnTicket (object , func (t * forgefed.Ticket ) error {
70
+ return ReceiveIssue (ctx , t )
71
+ })
72
+ if err != nil {
73
+ ctx .ServerError ("ReceiveIssue" , err )
74
+ return
75
+ }
76
+ // TODO: Implement ticketIRIToName and redirect to ticket
68
77
}
69
78
70
79
ctx .Status (http .StatusOK )
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import (
11
11
)
12
12
13
13
// Create an issue
14
- func Issue (ctx context.Context , ticket * forgefed.Ticket ) error {
14
+ func ReceiveIssue (ctx context.Context , ticket * forgefed.Ticket ) error {
15
15
// TODO
16
16
return nil
17
17
}
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ func RepoInbox(ctx *context.APIContext) {
136
136
return activitypub .PullRequest (ctx , t )
137
137
}
138
138
// New issue
139
- return activitypub .Issue (ctx , t )
139
+ return activitypub .ReceiveIssue (ctx , t )
140
140
})
141
141
case ap .NoteType :
142
142
// New comment
You can’t perform that action at this time.
0 commit comments