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

feat(apprise): add title in notification request body #2963

Merged
merged 3 commits into from
Dec 8, 2024

Conversation

mrchi
Copy link
Contributor

@mrchi mrchi commented Dec 1, 2024

Do you follow the guidelines?


Below descritions are generated by Copilot

This pull request includes a small but important change to the internal/integration/apprise/apprise.go file. The change involves adding the feed title to the notification request body, which ensures that the notifications sent include the title of the feed entry.


This title is useful in mobile notifications, or it's "Apprise Notifications".

This is the first PR I submitted to miniflux. Please forgive me if there are any shortcomings.

"body": message,
"urls": c.servicesURL,
"body": message,
"title": entry.Feed.Title,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think entry.Feed.Title is populated in this case. It would be more appropriate to pass feed *model.Feed to this function and use feed.Title (similar to other integrations like Nfty or Telegram).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think entry.Feed.Title is populated in this case. It would be more appropriate to pass feed *model.Feed to this function and use feed.Title (similar to other integrations like Nfty or Telegram).

Thank you for your review. I have modified it according to the implementation of Ntfy. Please review it again.

@mrchi mrchi requested a review from fguillot December 3, 2024 17:15
@fguillot fguillot merged commit 8cdf76d into miniflux:main Dec 8, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants