mirror of
https://gitea.com/gitea/tea.git
synced 2026-02-22 14:23:30 +01:00
More improvements (#870)
- no duplicate logins - link to html page rather than api in output - client side pagination of watched repos Reviewed-on: https://gitea.com/gitea/tea/pulls/870 Co-authored-by: techknowlogick <techknowlogick@gitea.com> Co-committed-by: techknowlogick <techknowlogick@gitea.com>
This commit is contained in:
committed by
techknowlogick
parent
20da414145
commit
f638dba99b
@@ -130,8 +130,12 @@ func markNotificationAs(cmd *context.TeaContext, filterStates []string, targetSt
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
// FIXME: this is an API URL, we want to display a web ui link..
|
||||
fmt.Println(n.Subject.URL)
|
||||
// Use LatestCommentHTMLURL if available, otherwise fall back to HTMLURL
|
||||
if n.Subject.LatestCommentHTMLURL != "" {
|
||||
fmt.Println(n.Subject.LatestCommentHTMLURL)
|
||||
} else {
|
||||
fmt.Println(n.Subject.HTMLURL)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user