fix(notif): correct issue notif action URLs (#2333)

pull/2337/head
TheCatLady 3 years ago committed by GitHub
parent 93b5ea20ca
commit dc7f959cb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -205,7 +205,7 @@ class DiscordAgent
const url = applicationUrl
? payload.issue
? `${applicationUrl}/issue/${payload.issue.id}`
? `${applicationUrl}/issues/${payload.issue.id}`
: payload.media
? `${applicationUrl}/${payload.media.mediaType}/${payload.media.tmdbId}`
: undefined

@ -175,7 +175,7 @@ class EmailAgent
imageUrl: payload.image,
timestamp: new Date().toTimeString(),
actionUrl: applicationUrl
? `${applicationUrl}/issue/${payload.issue.id}`
? `${applicationUrl}/issues/${payload.issue.id}`
: undefined,
applicationUrl,
applicationTitle,

@ -108,7 +108,7 @@ class PushoverAgent
const url = applicationUrl
? payload.issue
? `${applicationUrl}/issue/${payload.issue.id}`
? `${applicationUrl}/issues/${payload.issue.id}`
: payload.media
? `${applicationUrl}/${payload.media.mediaType}/${payload.media.tmdbId}`
: undefined

@ -175,7 +175,7 @@ class SlackAgent
const url = applicationUrl
? payload.issue
? `${applicationUrl}/issue/${payload.issue.id}`
? `${applicationUrl}/issues/${payload.issue.id}`
: payload.media
? `${applicationUrl}/${payload.media.mediaType}/${payload.media.tmdbId}`
: undefined

@ -122,7 +122,7 @@ class TelegramAgent
const url = applicationUrl
? payload.issue
? `${applicationUrl}/issue/${payload.issue.id}`
? `${applicationUrl}/issues/${payload.issue.id}`
: payload.media
? `${applicationUrl}/${payload.media.mediaType}/${payload.media.tmdbId}`
: undefined

@ -109,7 +109,7 @@ class WebPushAgent
}
const actionUrl = payload.issue
? `/issue/${payload.issue.id}`
? `/issues/${payload.issue.id}`
: payload.media
? `/${payload.media.mediaType}/${payload.media.tmdbId}`
: undefined;

Loading…
Cancel
Save