-
-
Notifications
You must be signed in to change notification settings - Fork 534
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
Replace tokens with guest accounts, swap endpoints #985
Open
zedeus
wants to merge
63
commits into
master
Choose a base branch
from
guest_accounts
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
3572dd7
Replace tokens with guest accounts, swap endpoints
zedeus bbd68e6
Filter out account limits that already reset
zedeus 3d8858f
Track rate limits, reset after 24 hours
zedeus e8b5cbe
Add missing limitedAt assignment
zedeus 51714b5
Add guest accounts variable to GitHub action
zedeus c3d9441
Unify some guest account logs
zedeus 12504bc
Fix compilation error
zedeus 30bdf3a
Reduce max concurrent pending requests per account
zedeus 5c08e6a
Fix compilation on older versions of Nim
zedeus 6e87449
Tweak /.tokens, add amount of limited accounts
zedeus 8df5256
Switch back to old user search endpoint
zedeus 4580836
Fix tweetDetail stats
zedeus a3e11e3
Switch to using typeahead for user search
zedeus 88b005c
Revert "Switch to using typeahead for user search"
zedeus ae9fa02
Switch to TweetDetail for tweets
zedeus 03794a8
Cleanup
zedeus 7630f57
Fix cards not being displayed
zedeus 4ccf350
Improve .tokens output
zedeus 986b91a
Handle ProtocolError and BadClientError equally
zedeus 898b19b
Improve rate limit handling, minor refactor
zedeus 37b58a5
Fix accounts logging
zedeus 282ce8b
Add 429 logging
zedeus 82beb5d
Add empty oauth token logging
zedeus 84dcf49
Fix negative pending requests bug
zedeus b8fe212
Add media proxying error logging
zedeus 4250245
Shorten media proxy error log
zedeus fcd74e8
Retry rate limited requests with different account
zedeus 14f9a09
Fix crash on missing quote tweet data crash
zedeus 7abcb48
Increase photo rail cache ttl
zedeus 7d14789
Improve guest accounts loading, add JSONL support
zedeus 537af7f
Improve Liberapay css for Firefox compatibility
zedeus 735b30c
fix(nitter): add graphql user search (#1047)
DrSocket 32e3469
Fix multi-user timelines
zedeus edad09f
Update nimcrypto and jsony
zedeus 0892758
Bump minimum Nim version
zedeus 4120558
Replace /.tokens with /.health and /.accounts
zedeus b8103cf
Fix compilation on Nim 1.6.x
zedeus 60a8256
Run tests on multiple Nim versions
zedeus bd0be72
Merge branch 'master' into guest_accounts
zedeus b930a3d
Fix guest accounts CI setup
zedeus 33bad37
Fix guest accounts CI setup attempt 2
zedeus 006b91c
Prevent annoying warnings on devel
zedeus b0b3351
Fix missing CI file argument
zedeus 58e73a1
Fix guest accounts CI setup attempt 3
zedeus 1d20bd0
Remove redundant "active" field from /.health
zedeus 7b3fcdc
Fix guest accounts CI setup attempt 4
zedeus 623424f
Fix outdated test
zedeus e1838e0
Move CI workflow to buildjet
zedeus 209f453
Purge expired accounts after parsing
zedeus d175832
Don't requests made before reset
zedeus e0d9dd0
Fix #670
zedeus 5e18864
Bump Nim in the ARM64 Dockerfile, add nitter user
zedeus eaedd2a
Fix ARM64 Dockerfile versions
zedeus c2819da
Fix #1106
zedeus 06ab1ea
Enable disabled tests
zedeus 4dac9f0
Add simple job_details card support
zedeus d6be08d
Fix jobDetails error on old Nim versions
zedeus f8254c2
Add support for business and gov verification
zedeus a9740fe
Fix compilation with old Nim again
zedeus 583c858
Fix search queries in user search RSS feeds (#1126)
the-blank-x 52db03b
Fix broken video playback by forcing fmp4
zedeus cdff5e9
Fix for #1147, Proxy for audio URL and upgrade hls.js (#1178)
jackyzy823 c6edec0
Update auth.nim (#1164)
somini File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,5 @@ nitter | |
/public/css/style.css | ||
/public/md/*.html | ||
nitter.conf | ||
guest_accounts.json* | ||
dump.rdb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
FROM alpine:3.18 as nim | ||
LABEL maintainer="[email protected]" | ||
|
||
RUN apk --no-cache add gcc git libc-dev libsass-dev "nim=1.6.14-r0" nimble pcre | ||
RUN apk --no-cache add libsass-dev pcre gcc git libc-dev "nim=1.6.14-r0" "nimble=0.13.1-r2" | ||
|
||
WORKDIR /src/nitter | ||
|
||
|
@@ -15,9 +15,11 @@ RUN nimble build -d:danger -d:lto -d:strip \ | |
|
||
FROM alpine:3.18 | ||
WORKDIR /src/ | ||
RUN apk --no-cache add ca-certificates pcre openssl1.1-compat | ||
RUN apk --no-cache add pcre ca-certificates openssl1.1-compat | ||
COPY --from=nim /src/nitter/nitter ./ | ||
COPY --from=nim /src/nitter/nitter.example.conf ./nitter.conf | ||
COPY --from=nim /src/nitter/public ./public | ||
EXPOSE 8080 | ||
RUN adduser -h /src/ -D -s /bin/sh nitter | ||
USER nitter | ||
CMD ./nitter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this bumps your
requires nim
torequires "nim >= 1.6"
, nitter doesn't build anymore with nim 1.4.8 because of this.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch, thanks. 1.6.0 was released two full years ago, so I think it's time to bump that anyway. Debian is on 1.6.14 and Ubuntu 23.04 is 1.6.10, so I'll set that as the minimum.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have created a PR for that: #1053
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally your CI should build nitter with this minimum version instead of some loose 1.x to catch this in the future.