Commit Graph

17837 Commits

Author SHA1 Message Date
sneakers-the-rat
1e54bf6ff2 rm allow_synchronous_requests param, since it always needs to be true 2024-12-09 22:09:20 -08:00
sneakers-the-rat
a7b0661d56 single line for fabricated status when its not humongous 2024-12-09 22:09:20 -08:00
sneakers-the-rat
63ed1ddd15 add tests for early returning, fix tests to put root status outside of debounce window 2024-12-09 22:09:20 -08:00
sneakers-the-rat
d97b1800b2 lint 2024-12-09 22:09:20 -08:00
Jonny Saunders
af0779eb0b Quit early if shouldn't fetch replies within worker
Co-authored-by: kouhaidev <66407198+kouhaidev@users.noreply.github.com>
2024-12-09 22:09:20 -08:00
sneakers-the-rat
e8d35842a0 Rename should_not_fetch_replies
Co-authored-by: Kouhai <66407198+kouhaidev@users.noreply.github.com>
2024-12-09 22:09:20 -08:00
sneakers-the-rat
19b67e66bb add maximum page limit 2024-12-09 22:09:20 -08:00
Jonny Saunders
5dbfebf756 Update app/services/activitypub/fetch_all_replies_service.rb
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2024-12-09 22:09:20 -08:00
sneakers-the-rat
7aab38fbc0 rm duplicated env vars 2024-12-09 22:09:20 -08:00
sneakers-the-rat
c0fbb9292b rm noisy schema.rb auto-changes 2024-12-09 22:09:20 -08:00
sneakers-the-rat
70968032e3 apply changes from patches that couldnt be auto-applied 2024-12-09 22:09:20 -08:00
sneakers-the-rat
8e35490276 remove redundant params - forgot i subclassed
Signed-off-by: sneakers-the-rat <sneakers-the-rat@protonmail.com>
2024-12-09 22:09:20 -08:00
sneakers-the-rat
2e21402330 tests for the fetch all reply worker
Signed-off-by: sneakers-the-rat <sneakers-the-rat@protonmail.com>
2024-12-09 22:09:20 -08:00
sneakers-the-rat
7cf6177666 the most basic test you could imagine
Signed-off-by: sneakers-the-rat <sneakers-the-rat@protonmail.com>
2024-12-09 22:09:20 -08:00
sneakers-the-rat
1f7142efdb Fix limit in fetch_replies_service to not always limit by 5 (which always caused us to only do one page). Rename some variables to make purpose clearer. Return the array of all fetched uris instead of just the number we got
Signed-off-by: sneakers-the-rat <sneakers-the-rat@protonmail.com>
2024-12-09 22:09:20 -08:00
sneakers-the-rat
f803230ab3 Working version of fetch all replies service with global maximum on fetching
Signed-off-by: sneakers-the-rat <sneakers-the-rat@protonmail.com>
2024-12-09 22:09:20 -08:00
sneakers-the-rat
aec98b8b4a rm more spurious formatting
Signed-off-by: sneakers-the-rat <sneakers-the-rat@protonmail.com>
2024-12-09 22:09:20 -08:00
sneakers-the-rat
6600f28fea rm spurious imports and reformatting
Signed-off-by: sneakers-the-rat <sneakers-the-rat@protonmail.com>
2024-12-09 22:09:20 -08:00
sneakers-the-rat
7023ee85e3 rm zombie code in fetch_replies_service
Signed-off-by: sneakers-the-rat <sneakers-the-rat@protonmail.com>
2024-12-09 22:09:20 -08:00
sneakers-the-rat
6ddc66a974 rm redundant request to fetch replies worker in controller
Signed-off-by: sneakers-the-rat <sneakers-the-rat@protonmail.com>
2024-12-09 22:09:20 -08:00
sneakers-the-rat
f402fbcbde Remove recursion, separate out into separate workers/services, add limit to global maximum statuses fetched (untested, this might not work yet)
Signed-off-by: sneakers-the-rat <sneakers-the-rat@protonmail.com>
2024-12-09 22:09:20 -08:00
sneakers-the-rat
5e0b959660 accept review comments https://github.com/NeuromatchAcademy/mastodon/pull/44\#discussion_r1766143286 and https://github.com/NeuromatchAcademy/mastodon/pull/44\#discussion_r1766148179
Signed-off-by: sneakers-the-rat <sneakers-the-rat@protonmail.com>
2024-12-09 22:09:20 -08:00
sneakers-the-rat
aa7b197dc6 correct number of args to replies worker, recursive fetching is working
Signed-off-by: sneakers-the-rat <sneakers-the-rat@protonmail.com>
2024-12-09 22:09:20 -08:00
sneakers-the-rat
d29497dbe2 don't do it for every create, only do recursive reply expansion when requested from context endpoint, but async
Signed-off-by: sneakers-the-rat <sneakers-the-rat@protonmail.com>
2024-12-09 22:09:20 -08:00
sneakers-the-rat
24e1b79c1e working (i think?) recursive fetch
Signed-off-by: sneakers-the-rat <sneakers-the-rat@protonmail.com>
2024-12-09 22:09:20 -08:00
jonny
506f54efe9 committing all ugly with a bunch of logger calls in the middle but we are almost there baby
Signed-off-by: sneakers-the-rat <sneakers-the-rat@protonmail.com>
2024-12-09 22:09:20 -08:00
sneakers-the-rat
1c4fa8841f Initial draft of fetching all replies on context load
Signed-off-by: sneakers-the-rat <sneakers-the-rat@protonmail.com>
2024-12-09 22:09:20 -08:00
Matt Jankowski
2131e61548
Fix hard wrap of markdown list in TOS template (#33230) 2024-12-10 01:43:03 +00:00
Matt Jankowski
12d9ef6003
Character conversion on TOS template (#33233) 2024-12-10 00:04:59 +00:00
Eugen Rochko
425311e1d9
Change referrer policy to be controlled by header in web UI (#33214) 2024-12-09 22:42:45 +00:00
renovate[bot]
2e35b15b4d
Update dependency react-textarea-autosize to v8.5.6 (#33228)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-09 15:12:31 +00:00
renovate[bot]
cfd2879ba4
Update dependency nokogiri to v1.17.0 (#33218)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-09 15:08:16 +00:00
Matt Jankowski
342055cb15
Update rubocop to version 1.69.1 (#32967) 2024-12-09 14:52:49 +00:00
Emelia Smith
6615f17b48
Fix missing top border on Admin Hashtags UI (#31443) 2024-12-09 12:55:28 +00:00
renovate[bot]
7b7a29867b
Update devDependencies (non-major) (#33221)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-09 10:24:10 +00:00
Eugen Rochko
30aa0df88c
Add terms of service (#33055) 2024-12-09 10:04:46 +00:00
github-actions[bot]
7a2a345c08
New Crowdin Translations (automated) (#33210)
Co-authored-by: GitHub Actions <noreply@github.com>
2024-12-09 09:20:28 +00:00
renovate[bot]
f646fb0259
Update dependency doorkeeper to v5.8.1 (#33225)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-09 09:19:58 +00:00
Eugen Rochko
bf79174829
Fix design of search bar on explore screen in light theme in web UI (#33224) 2024-12-09 09:19:00 +00:00
Claire
ab133c5e30
Bump version to v4.3.2 (#33226) 2024-12-09 09:09:00 +00:00
Eugen Rochko
796dd57e1b
Change ability to navigate of unconfirmed users (#33209) 2024-12-09 08:31:56 +00:00
Eugen Rochko
ca45f896dd
Fix various visual sign-up flow issues (#33206) 2024-12-09 08:23:19 +00:00
Matt Jankowski
58c40caeb4
Extract SPA-handled routes to stand-alone file (#33190) 2024-12-07 07:46:34 +00:00
Matt Jankowski
72a4da83fd
Merge duplicate custom css request specs (#33204) 2024-12-06 18:55:47 +00:00
github-actions[bot]
8dc7f8533d
New Crowdin Translations (automated) (#33193)
Co-authored-by: GitHub Actions <noreply@github.com>
2024-12-06 15:44:21 +00:00
renovate[bot]
96498a09c2
Update dependency @babel/preset-react to v7.26.3 (#33174)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-06 15:21:12 +00:00
renovate[bot]
3ad45ced5e
Update dependency @dnd-kit/core to v6.3.1 (#33194)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-06 15:20:36 +00:00
renovate[bot]
e35655cf55
Update dependency express to v4.21.2 (#33195)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-06 15:20:19 +00:00
Claire
fbcd14ff7e
Always remove setting keys in legacy user settings migrations (#33196) 2024-12-06 10:58:18 +00:00
Eugen Rochko
25387dc423
Refactor <HashtagHeader> to TypeScript (#33096) 2024-12-06 08:42:24 +00:00