TTRSS Android: Add hostname of link to article fragment

This is bugging me for quite some time now with Hackernews and other aggregator feeds submitting links to NPR, CNN, Guardian and other bullshit i won’t know unless i actually open the link.

The change is minimal (~20 lines) and looks like this:

Screenshot_20230520_084124

The field is only visible if m_article.comments_link hostname is different from m_article.link hostname, omitting the www. prefix if present.

Your CONTRIBUTE.md is not entirely clear since you don’t even run Gog (any more?) and i can’t fork https://gitlab.tt-rss.org/tt-rss/tt-rss-android (project limit), do you even accept PRs?

Cheers

1 Like

sounds like a good idea to me.

https://gitlab.tt-rss.org/tt-rss/tt-rss/-/blob/master/CONTRIBUTING.md#contributing-code-the-right-way

tldr: you tell me you gitlab account, i’ll give it proper rights, and you’ll be able to clone stuff and make PRs.

e: i forgot that tt-rss-android has a separate contributing.md, i’ll make a note to update it to be more relevant.

https://gitlab.tt-rss.org/defkev

done.

i would rather have a more streamlined flow here but unfortunately dozens of bots register per day and just flood everything with spam.

Would you consider updating the tt-rss API getArticle to include the feed_url property?

I’d rather use that (if available) and comments_link (which may or may not be available) as a fallback.

i don’t see why not. don’t forget to bump API version if you plan to make a MR for this.

e: probably site_url not feed_url, i would assume feed_url having feed XML url

Done, site_url works even better.

Edit:
Just noticed my posts got flagged as “advertising” for linking to gitlab.tt-rss.org ^^

oh boy. can’t live with antispam, can’t live without it…

apparently there’s a whitelist for this rule (should i add something else here maybe? idk)

Just noticed i missed the configurable font size