@@ -102,7 +102,7 @@ export class FeedMonitor {
102102 matchedKeywords
103103 } ;
104104
105- await this . sendNotification ( item ) ;
105+ await this . sendNotification ( item , matchedKeywords ) ;
106106
107107 // Update history entry to reflect sent notification
108108 historyEntry . notificationSent = true ;
@@ -148,7 +148,7 @@ export class FeedMonitor {
148148 }
149149 }
150150
151- private async sendNotification ( item : FeedItem ) {
151+ private async sendNotification ( item : FeedItem , matchedKeywords : string [ ] ) {
152152 const config = this . configManager . getConfig ( ) ;
153153 const ntfyUrl = `${ config . ntfyServerAddress } /${ config . ntfyTopic } ` ;
154154 const sanitizedTitle = item . title . replace ( / [ ^ \x20 - \x7E ] / g, '' ) ;
@@ -162,7 +162,9 @@ export class FeedMonitor {
162162 body : item . description ,
163163 headers : {
164164 'Title' : sanitizedTitle ,
165- 'Priority' : 'low'
165+ 'Priority' : 'low' ,
166+ 'Tags' : matchedKeywords . join ( ',' ) ,
167+ 'Actions' : `view, Open, ${ item . link } `
166168 }
167169 } ) ;
168170 } catch ( error ) {
@@ -233,6 +235,6 @@ export class FeedMonitor {
233235 link : config . ntfyServerAddress ,
234236 pubDate : new Date ( ) . toISOString ( )
235237 } ;
236- await this . sendNotification ( testItem ) ;
238+ await this . sendNotification ( testItem , [ "keyword1" , "keyword2" ] ) ;
237239 }
238240}
0 commit comments