DIYgod / RSSHub

🧡 Everything is RSSible
https://docs.rsshub.app
MIT License
33.74k stars 7.54k forks source link

fix(twitter): set title to author #17673

Open ricklahaye opened 21 hours ago

ricklahaye commented 21 hours ago

Involved Issue / 该 PR 相关 Issue

Related to #17668

Example for the Proposed Route(s) / 路由地址示例

/twitter/user/elonmusk/showAuthorAsTitleOnly=1

New RSS Route Checklist / 新 RSS 路由检查表

Note / 说明

I am not too familiar with JS so apologies if it does not match full standards, but tested it and seem to work. I This PR allows title to be set to author only. This as Twitter does not have titles, and uses description now; which does not look great when RSS client shows preview of first few lines (which should often be enough to get grasp of the tweet).

github-actions[bot] commented 20 hours ago

Successfully generated as following:

http://localhost:1200/twitter/user/elonmusk/showAuthorAsTitleOnly=1 - Failed ❌ ``` HTTPError: Response code 503 (Service Unavailable) Error Message:
ConfigNotFoundError: Twitter API is not configured Route: /twitter/user/:id/:routeParams? Full Route: /twitter/user/elonmusk/showAuthorAsTitleOnly=1 Node Version: v22.11.0 Git Hash: 9a6bc823 ```
github-actions[bot] commented 20 hours ago

Successfully generated as following:

http://localhost:1200/twitter/user/elonmusk/showAuthorAsTitleOnly=1 - Failed ❌ ``` HTTPError: Response code 503 (Service Unavailable) Error Message:
ConfigNotFoundError: Twitter API is not configured Route: /twitter/user/:id/:routeParams? Full Route: /twitter/user/elonmusk/showAuthorAsTitleOnly=1 Node Version: v22.11.0 Git Hash: 80c710e6 ```