DIYgod
3ae25ddb7a
feat: support twitter username and password login
2024-01-29 20:06:44 +08:00
Rongrong
fc42bebb47
fix(route/twitter): reply URL; threads when excludeReplies=1 ( #14330 )
...
Without `legacy.id_str`, reply URLs would be constructed with conversion
IDs, resulting in:
- wrong URLs: pointing to the first tweet in the conversion (thread)
- multiple items with the same guid: each tweet in a conversion (thread)
had the same URL and thus guid
The bug was caused by the widely used temporary fix (legacy.id_str ||
legacy.conversation_id_str) after Twitter had upgraded their API. Thus,
it is quite easy to fix it:
Refill legacy.id_str using the rest_id that resides in the container of
legacy.
With it fixed, take a step further to include threads when
excludeReplies=1 (simulating the behavior of Twitter Web/App).
Signed-off-by: Rongrong <i@rong.moe>
2024-01-28 00:11:32 +08:00
Rongrong
e8a33d80fa
fix(route/twitter/web-api): excludeReplies=1 ( #14290 )
...
Fixes #14285
The postprocessing that removes replies accidentally removed all tweets
except for the first one after the recent Twitter update.
Signed-off-by: Rongrong <i@rong.moe>
2024-01-21 14:11:01 +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
Tony
c06353f580
fix(route): fix twitter error condition ( #13943 )
2023-12-03 23:54:49 +08:00
DIYgod
b2aeb037fb
feat: compatible with old twitter caches
2023-11-29 22:55:11 +08:00
DIYgod
673a2259ce
feat: remove outdated test case
2023-11-29 21:57:13 +08:00
DIYgod
9032153c7d
feat: bring back twitter routes
2023-11-29 21:50:26 +08:00
Rongrong
c5feec07f3
fix(route/twitter/user): missing all replies ( #12912 )
...
Signed-off-by: Rongrong <i@rong.moe>
2023-07-30 04:51:31 +08:00
Rongrong
2f9e7fa671
fix(route/twitter/user): missing latest tweets ( #12870 )
...
* fix(route/twitter/user): missing latest tweets
Signed-off-by: Rongrong <i@rong.moe>
* Update lib/v2/twitter/web-api/twitter-api.js
---------
Signed-off-by: Rongrong <i@rong.moe>
2023-07-25 23:47:38 +08:00
DIYgod
48626a813f
fix: twitter keyword
2023-07-23 14:31:30 +01:00
Rongrong
c771fbd3cd
feat(route/twitter): use unique ID in some routes ( #12759 )
...
Signed-off-by: Rongrong <i@rong.moe>
2023-07-06 00:06:48 +08:00
Rongrong
7e45fe12e9
fix(route/twitter): Web API authentication ( #12754 )
2023-07-04 18:24:09 +01:00
github-actions[bot]
3888e6781c
style: auto format
2023-05-01 20:34:18 +00:00
Alex Liu
334485899c
feat(route): add tweet details for twitter ( #12412 )
...
* feat(route): add tweet details for twitter
* docs: add english docs
* fix: sort router
---------
2023-05-02 04:31:03 +08:00
Tony
589ddb3a43
refactor(eslint): add back no-return-await ( #11877 )
...
* chore: add back no-return-await
* chore: fix action warning
* chore: fix all no-return-await
2023-02-16 04:30:05 +08:00
Rongrong
df521a6f2c
fix(route/twitter/web-api): empty rslt not skipped ( #11482 )
...
Signed-off-by: Rongrong <i@rong.moe>
Signed-off-by: Rongrong <i@rong.moe>
2022-12-22 00:04:14 +08:00
Rongrong
31feadcc77
fix(route)(twitter/keyword): wrong mode in web API ( #10539 )
...
* fix(route)(twitter/keyword): wrong mode in web API
Signed-off-by: Rongrong <i@rong.moe>
* fix: typo
Signed-off-by: Rongrong <i@rong.moe>
2022-08-19 20:17:19 +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