Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Ntfy] Only include action link if monitor url is defined #3274 #4411

Merged
merged 2 commits into from
Mar 5, 2024

Conversation

philbot9
Copy link

@philbot9 philbot9 commented Jan 23, 2024

⚠️⚠️⚠️ Since we do not accept all types of pull requests and do not want to waste your time. Please be sure that you have read pull request rules:
https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md#can-i-create-a-pull-request-for-uptime-kuma

Tick the checkbox if you understand [x]:

  • I have read and understand the pull request rules.

Description

Fixes #3274

In ntfy v2.8 attempting to send a notification with an action that's missing a URL results in failure.

This bugfix was tested and is working with ntfy v2.8.

Type of change

Please delete any options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • My code follows the style guidelines of this project
  • I ran ESLint and other linters for modified files
  • I have performed a self-review of my own code and tested it
  • I have commented my code, particularly in hard-to-understand areas (including JSDoc for methods)
  • My changes generates no new warnings
  • My code needed automated testing. I have added them (this is optional task)

Screenshots (if any)

Please do not use any external image service. Instead, just paste in or drag and drop the image here, and it will be uploaded automatically.

@chakflying
Copy link
Collaborator

chakflying commented Jan 23, 2024

The value of url is https:// by default. (see #3327)

This should also be checked to prevent the empty url from being sent.

@philbot9
Copy link
Author

Ok, the PR has been updated.

@chakflying chakflying added the area:notifications Everything related to notifications label Jan 24, 2024
@CommanderStorm
Copy link
Collaborator

Thanks for the bugfix.

All changes in this PR are small and uncontroversial.
⇒ merging with junior maintainer approval as by contribution guide

@CommanderStorm CommanderStorm merged commit da92400 into louislam:master Mar 5, 2024
17 checks passed
@Zaid-maker
Copy link
Contributor

Zaid-maker commented Mar 5, 2024

why the actions are failing? on npm i npm@9 -g step?

@CommanderStorm
Copy link
Collaborator

Really unsure why.
I don't think this is related to any commit we did, as that has been failing since #4479 and said PR does not touch npm.
Ideas?

@Zaid-maker
Copy link
Contributor

Zaid-maker commented Mar 5, 2024

Really unsure why. I don't think this is related to any commit we did, as that has been failing since #4479 and said PR does not touch npm. Ideas?

I looked up on Stack overflow and find we had to pass --force flag to overwrite the node_modules in cache, and this is most likely because of node_modules cache as far said in the fix.

https://stackoverflow.com/questions/39293636/npm-err-error-eperm-operation-not-permitted-rename

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:notifications Everything related to notifications
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Ntfy] Action link should only be included if url is defined
4 participants