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

fix feed title issues #2872

Merged
merged 1 commit into from
Nov 13, 2024
Merged

fix feed title issues #2872

merged 1 commit into from
Nov 13, 2024

Conversation

Grotax
Copy link
Member

@Grotax Grotax commented Nov 13, 2024

Summary

While testing the new opml import function and trying to export the feeds from my dev server as opml I came across this issue again, since #869 and #2745 it is possible to add feeds without a title.
But this is causing other issues for example when you try to export your feeds because the DB Feed Entity expects the title to be a string.

With my changes it is now ok if a feed title is null, that should allow people to see feeds even when they do not have a title.
This is of course not optimal because a feed without a title is hard to identify in the feed list, if the feed has a logo or favicon you at least see that else you just see an empty line. You are still able to call open the menu though to remove or rename the feed.

So I also added a check if the title is null during the first creation of the feed and decided to use the hostname of the url that the user entered when adding the feed, which might differ from the actual feed url since some blogs and I think especially podcasts use some cdn for that.

Hope this fixes the last issues.

Checklist

@Grotax Grotax marked this pull request as ready for review November 13, 2024 10:14
@Grotax Grotax requested a review from SMillerDev November 13, 2024 10:14
@Grotax Grotax force-pushed the fix/empty-title branch 3 times, most recently from be932de to 6cfef41 Compare November 13, 2024 10:39
@Grotax
Copy link
Member Author

Grotax commented Nov 13, 2024

I wasn't really able to see what your change would do and commited it, I'm not sure if that is what we want though.
I thought the title parameter is there so that a user can overwrite the title of a feed during creation.

I think with your change we would always set the title to the hostname which is not what we want.
At least the web-ui does not allow to set a title so when a user adds a feed this will overwrite the title that we might have gotten from the parsed feed.

@SMillerDev
Copy link
Contributor

Ah, I guess you're right. I thought $title came from the feed or user. But it's only from the user. I'll fix it.

Co-authored-by: Sean Molenaar <[email protected]>
Signed-off-by: Benjamin Brahmer <[email protected]>
@Grotax Grotax merged commit 2aeff60 into master Nov 13, 2024
23 of 24 checks passed
@Grotax Grotax deleted the fix/empty-title branch November 13, 2024 13:09
Grotax added a commit that referenced this pull request Nov 19, 2024
This is a major new release with a lot of changes.
The frontend of news was rewritten from scratch to change to Vue.js coming from the original implementation with AngularJS.

Also we require PHP 8.2 now and support Nextcloud 29 and 30.

For the full Changelog checkout the entries for 25.0.0-alpha1 to 25.0.0.

Changes since 25.0.0-alpha14

The following changes and fixes were done since the last alpha version 14.

Changed
- If title of feed is empty during creation set hostname of feed as title (#2872)
- Add command to import OPML file
- Add API to import OPML file or request body
- add import/export `opml` to user settings (#2541)
- Remove non-functional unread and starred filter
- add single column layout (compact mode) (#2505)
- add horizontal split layout (expanded compact mode) (#2505)
- Allow to further drag the `feedview` list (and/or provide alternative view) (#2505)

Fixed
- Feed without Title returned by DB causes exception (#2872)
- Keep Unread is now respected during mark read on scroll and is kept during feed/folder changes

Signed-off-by: Benjamin Brahmer <[email protected]>
Grotax added a commit that referenced this pull request Nov 19, 2024
This is a major new release with a lot of changes.
The frontend of news was rewritten from scratch to change to Vue.js coming from the original implementation with AngularJS.

Also we require PHP 8.2 now and support Nextcloud 29 and 30.

For the full Changelog checkout the entries for 25.0.0-alpha1 to 25.0.0.

Changes since 25.0.0-alpha14

The following changes and fixes were done since the last alpha version 14.

Changed
- If title of feed is empty during creation set hostname of feed as title (#2872)
- Add command to import OPML file
- Add API to import OPML file or request body
- add import/export `opml` to user settings (#2541)
- Remove non-functional unread and starred filter
- add single column layout (compact mode) (#2505)
- add horizontal split layout (expanded compact mode) (#2505)
- Allow to further drag the `feedview` list (and/or provide alternative view) (#2505)

Fixed
- Feed without Title returned by DB causes exception (#2872)
- Keep Unread is now respected during mark read on scroll and is kept during feed/folder changes

Signed-off-by: Benjamin Brahmer <[email protected]>
@Grotax Grotax mentioned this pull request Nov 19, 2024
Grotax added a commit that referenced this pull request Nov 19, 2024
This is a major new release with a lot of changes.
The frontend of news was rewritten from scratch to change to Vue.js coming from the original implementation with AngularJS.

Also we require PHP 8.2 now and support Nextcloud 29 and 30.

For the full Changelog checkout the entries for 25.0.0-alpha1 to 25.0.0.

Changes since 25.0.0-alpha14

The following changes and fixes were done since the last alpha version 14.

Changed
- If title of feed is empty during creation set hostname of feed as title (#2872)
- Add command to import OPML file
- Add API to import OPML file or request body
- add import/export `opml` to user settings (#2541)
- Remove non-functional unread and starred filter
- add single column layout (compact mode) (#2505)
- add horizontal split layout (expanded compact mode) (#2505)
- Allow to further drag the `feedview` list (and/or provide alternative view) (#2505)

Fixed
- Feed without Title returned by DB causes exception (#2872)
- Keep Unread is now respected during mark read on scroll and is kept during feed/folder changes

Signed-off-by: Benjamin Brahmer <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HTTP 500 error after adding https://geneva.cs.umd.edu/papers/, completely breaking this app
2 participants