Commit Graph

13 Commits

Author SHA1 Message Date
Rongrong 4644ce5755
fix(route/twitter): readability and RT link (#14289)
1. Trim link pointing to the tweet itself (usually appears when the
tweet is truncated).
2. Only insert <hr> when both showTimestampInDescription and readable
are enabled.
3. Make RT links point to the RT itself, instead of the original tweet.

Signed-off-by: Rongrong <i@rong.moe>
2024-01-21 14:14:19 +00:00
DIYgod 1574105a92
fix: twitter changed the fields 2024-01-19 11:30:45 +08:00
Tony 6d901cb7dc
style(eslint): add eslint-unicorn (#14257)
* style: add eslint-unicorn

* style: fix unicorn/no-useless-spread

* style: fix unicorn/no-useless-promise-resolve-reject

* style: fix unicorn/no-for-loop

* fix: codeql bad HTML filtering regexp

* fix: codeql incomplete replace

* fix: unicorn/no-abusive-eslint-disable

* style: fix unicorn/no-new-array

* style: fix unicorn/no-typeof-undefined

* style: fix unicorn/no-zero-fractions

* style: fix unicorn/no-empty-file

* style: fix unicorn/prefer-date-now

* revert: auto fix unicorn/prefer-switch on lib/v2/kuaidi100/utils.js

* style: fix unicorn/prefer-array-find

* style: fix unicorn/prefer-array-flat

* style: fix unicorn/prefer-array-flat-map

* style: fix unicorn/prefer-at

* style: fix unicorn/prefer-string-starts-ends-with

* style: fix unicorn/prefer-includes

* fix: codeql URL substring sanitization

* style: fix unicorn/prefer-optional-catch-binding

* style: fix unicorn/catch-error-name

* style: fix unicorn/escape-case

* style: fix unicorn/prefer-native-coercion-functions

* style: fix unicorn/prefer-regexp-test

* style: fix unicorn/require-array-join-separator

* style: fix unicorn/prefer-math-trunc

* style: fix unicorn/prefer-negative-index

* style: fix unicorn/prefer-dom-node-dataset

* style: fix unicorn/prefer-dom-node-text-content

* style: fix unicorn/prefer-query-selector

* style: fix unicorn/no-array-for-each

* style: fix unicorn/no-negated-condition

* style: fix unicorn/prefer-add-event-listener

* style: fix unicorn/import-style

* style: fix prefer-regex-literals

* style: disable unicorn/no-useless-switch-case

* style: disable unicorn/text-encoding-identifier-case

* style: fix unicorn/prefer-set-has

* style: fix unicorn/prefer-spread

* revert: auto fix on lib/routes/universities/ynnu/edu/base64.js

* style: fix unicorn/no-useless-undefined

* style: fix unicorn/no-array-push-push

* style: fix unicorn/no-useless-undefined again

* style: fix unicorn/no-lonely-if

* style: fix unicorn/prefer-reflect-apply

* style: fix unicorn/switch-case-braces

* style: fix unicorn/prefer-switch

* style: fix unicorn/prefer-array-some

* fix: deepscan UNUSED_VAR_ASSIGN

* style: fix unicorn/prefer-ternary

* fix: follow-up of unicorn/prefer-ternary

* revert: auto fix of unicorn/prefer-string-slice for substring()

* style: disable unicorn/prefer-string-slice

fix: auto fix slice over deprecated substr

* style: fix unicorn/throw-new-error

* style: fix unicorn/filename-case

* test: fix dateParser renaming

* style: fix unicorn/better-regex

* style: fix unicorn/prefer-string-replace-all

* fix(deps): add sanitize-html

* style: fix no-prototype-builtins

* style: fix unicorn/consistent-destructuring

* style: fix unicorn/consistent-function-scoping

* style: fix unicorn/prefer-regexp-test

* style: fix unicorn/prefer-logical-operator-over-ternary

* style: fix unicorn/no-array-callback-reference

* style: add prefer-object-has-own

* style: warn unicorn/no-empty-file

* style: fix unicorn/prefer-number-properties

* style: fix no-useless-undefined again

* style: fix unicorn/numeric-separators-style

* style: disable unicorn/no-array-callback-reference

false postive with cheerio
2024-01-18 20:43:40 +08:00
DIYgod 9032153c7d
feat: bring back twitter routes 2023-11-29 21:50:26 +08:00
Rongrong a832e97109
fix(route/twitter): media t.co links not purged (#12864) 2023-07-24 03:17:17 +01:00
DIYgod 12f3effc8b
feat: twitter showSymbolForRetweetAndReply param 2023-03-13 10:25:36 +00:00
DIYgod 6d93d13a7e
fix: twitter inline links 2023-02-22 22:33:25 +00:00
DIYgod 52678c9eef
feat: generate quote content_html, telegram channel repost extra data 2023-01-30 22:00:07 +00:00
Tony 762e67d81e
fix(route): twitter quotes (#11610) 2023-01-13 03:47:21 +08:00
DIYgod cb03dd3059
feat: quote repost and reply info for twitter and jike 2023-01-10 17:57:53 +00:00
DIYgod ab2f61824d
feat: output quote data for twitter and jike 2023-01-09 16:25:26 +00:00
Tony 81b92b7517
feat(route): twitter collection (#10369)
* feat(route): twitter collection

* docs: add docs

* fix: typo

* docs: fix missing params desc
2022-08-01 22:11:45 +08:00
Rongrong df5d3fc918
fix(route)(twitter): quote ignored in web API (#10361)
* fix(route)(twitter): quote ignored in web API

* refactor: migrate to v2

Signed-off-by: Rongrong <i@rong.moe>
2022-08-01 20:25:32 +08:00