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

titles in RSS feed became too long after the 2023 massive increase in character limit #1113

Open
nvalexander opened this issue Nov 13, 2023 · 4 comments

Comments

@nvalexander
Copy link

With the introduction of longer than 140 character posts, it may be the time to distinguish between title and description in the Atom feed. Currently, a thousand-character post leads, in Nitter, to a thousand-character title, which is not suitable for summary views.

@nvalexander
Copy link
Author

nvalexander commented Nov 16, 2023

I do not have the a way to test this, but I believe a quick fix is to insert in nitter/src/views/rss.nimf, after the line

#result &= xmltree.escape(text)

the following:

#var maxLength = 130
#if result.len > maxLength:
#  var cutoff = maxLength
#  while cutoff > 0 and result[cutoff] notin {' ', '\n', '\t'}:
#    dec(cutoff)
#  if cutoff == 0:
#    while cutoff < result.len and result[cutoff] notin {' ', '\n', '\t'}:
#      inc(cutoff)
#  result = result[0..cutoff-1]
#

@zedeus
Copy link
Owner

zedeus commented Nov 16, 2023

I agree, and these very long posts definitely need to be trimmed, but it's not as simple as that. See #493 for an old related discussion.

@nvalexander
Copy link
Author

Previously, users wanted to see the full post in the title, because they wanted to read the whole post from smartphone alerts. I don't think 10,000 characters, or whatever is the current limit, would still fit in the alert. In fact, I started this issue when my computer screen ran out of space.

Even a maxLength of 1000 would be better for me, when compared to the current setup.

@nvalexander nvalexander changed the title title in Atom feed are too long title in RSS feed are too long Nov 18, 2023
@nvalexander nvalexander changed the title title in RSS feed are too long titles in RSS feed became too long after the 2023 massive increase in character limit Nov 18, 2023
@PhilC813
Copy link

PhilC813 commented Dec 13, 2023

I personally prefer the way that Mastodon integrated RSS. They don't include the "title" element in the articles and only make use of the "description", so you don't end up with a duplicate of the post in your RSS reader.

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

No branches or pull requests

3 participants