Skip to content
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

Merge upstream - CVE-2024-23832 #39

Merged
merged 1,085 commits into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1085 commits
Select commit Hold shift + click to select a range
383be17
Add a version comment to the emoji preval-ed file so it is regenerate…
renchap Jan 12, 2024
575ab08
Disable `Rails/ApplicationController` for `HealthController` (#28705)
mjankowski Jan 12, 2024
923fc83
Improve `lint-staged` config (#28704)
renchap Jan 12, 2024
32eeca9
Refresh instance counts in spec (fixes intermittent failure) (#28698)
mjankowski Jan 12, 2024
cd37048
Move followable_by coverage to suggestions (#28697)
mjankowski Jan 12, 2024
df9e220
Add JS console errors check (#28682)
mjankowski Jan 12, 2024
b86083f
New Crowdin Translations (automated) (#28708)
github-actions[bot] Jan 12, 2024
7801db7
Spec coverage for custom css endpoint (#28706)
mjankowski Jan 12, 2024
a906960
Add coverage/bugfix for invalid appeal submission (#28703)
mjankowski Jan 12, 2024
c6684aa
Use the assets pipeline to load `inert.css` (#28701)
renchap Jan 12, 2024
608f66f
Change icon SVG imports to use a default import (#28709)
renchap Jan 12, 2024
e76b7eb
Merge pull request #2563 from ClearlyClaire/glitch-soc/merge-upstream
ClearlyClaire Jan 12, 2024
a90c134
Move followable by logic to suggestion class (#28710)
mjankowski Jan 12, 2024
28fdf93
Disable `Rails/LexicallyScopedActionFilter` for inherited auth contro…
mjankowski Jan 12, 2024
2c05b8a
Fix Undo Announce activity is not sent, when not followed by the rebl…
MitarashiDango Jan 12, 2024
1070804
Fix `RedownloadMediaWorker` not being called on transient S3 failure …
ClearlyClaire Jan 12, 2024
6bbcd93
Switch from 48px weight 600 material symbol icons to 24px weight 400 …
ClearlyClaire Jan 12, 2024
cc3ff66
Use rubygems released version of `omniauth-cas` gem (#28719)
mjankowski Jan 12, 2024
a3b6a85
Merge commit 'cd37048439f9b324f48e6af1f426a7894c54b4da' into glitch-s…
ClearlyClaire Jan 13, 2024
ca31b4d
[Glitch] Add new emojis from `jdecked/twemoji` 15.0
TheEssem Jan 11, 2024
d660963
[Glitch] Add a version comment to the emoji preval-ed file so it is r…
renchap Jan 12, 2024
a25e03d
Revert "Add role badges to WebUI (#2096)"
ClearlyClaire Jan 13, 2024
a40ce78
[Glitch] Add role badges to the WebUI
ClearlyClaire Jul 27, 2023
eae3275
[Glitch] Change design of role badges in web UI
Gargron Aug 2, 2023
b7eaae4
Merge pull request #2565 from ClearlyClaire/glitch-soc/merge-upstream
ClearlyClaire Jan 13, 2024
5f86184
Merge pull request #2566 from ClearlyClaire/glitch-soc/ports/badge-de…
ClearlyClaire Jan 13, 2024
d544148
[Glitch] Change icons in web UI
Gargron Oct 24, 2023
9b32a37
[Glitch] Fix missing icon props
renchap Oct 24, 2023
b67d977
[Glitch] Add missing ban icons
renchap Oct 25, 2023
6230d50
[Glitch] Fix various icon styles in web UI
Gargron Oct 26, 2023
b2a6386
[Glitch] Adjust transform origin for favorite star
zunda Nov 6, 2023
a8c59c2
[Glitch] Add icons for private and disabled boost in web UI
Gargron Nov 13, 2023
dd56900
[Glitch] Fixes dropdown target without a `buttonRef` (edit history)
renchap Dec 19, 2023
731f01a
[Glitch] Fix reply icon display in picture-in-picture footer
arbolitoloco1 Dec 29, 2023
46128f2
Fix glitch-soc status media icons
ClearlyClaire Jan 13, 2024
6333900
Fix glitch-soc CW media icons
ClearlyClaire Jan 13, 2024
e227e95
Fix glitch-soc textarea icons
ClearlyClaire Jan 13, 2024
e2ba5f6
Fix glitch-soc high color privacy icons
ClearlyClaire Jan 13, 2024
e2c7c37
Fix size of glitch-soc status info icons
ClearlyClaire Jan 13, 2024
04f786a
Merge pull request #2568 from ClearlyClaire/glitch-soc/ports/dreaded-…
ClearlyClaire Jan 14, 2024
ca17c2d
[Glitch] Use a context to propagate column-related Props, and remove …
renchap Oct 26, 2023
2653651
[Glitch] Simplify column headers
renchap Oct 27, 2023
3425b99
Merge pull request #2569 from ClearlyClaire/glitch-soc/ports/column-c…
ClearlyClaire Jan 14, 2024
bacb913
[Glitch] Add profile setup to onboarding in web UI
Gargron Nov 15, 2023
b534532
[Glitch] Change to single opt-in during profile setup in onboarding i…
Gargron Nov 17, 2023
a7bad8f
[Glitch] Fix profile setup showing default avatar in web UI
Gargron Dec 21, 2023
c1e28c8
[Glitch] change focus ui for keyboard only input
Jul 21, 2023
7565a32
[Glitch] change column link to add a better keyboard focus indicator
Aug 2, 2023
cc36362
[Glitch] Fix focus and hover styles in web UI
Gargron Jul 23, 2023
6772bf6
[Glitch] Fix wrong color on active icons with counters in web UI
Gargron Sep 2, 2023
0213ae6
Extract glitch-soc-only i18n string
ClearlyClaire Jan 14, 2024
545c004
Merge pull request #2570 from ClearlyClaire/glitch-soc/ports/onboardi…
ClearlyClaire Jan 14, 2024
16499bc
Rewrite `Permalink` as functional component
ClearlyClaire Jan 14, 2024
52c023a
Convert `Permalink` to Typescript
ClearlyClaire Jan 14, 2024
695dcc6
[Glitch] Converted app/javascript/flavours/glitch/utils/ folder to Ty…
JoshuaKGoldberg Nov 28, 2023
f8941c4
[Glitch] Converted hashtag.jsx to TypeScript
JoshuaKGoldberg Nov 28, 2023
e72676e
Improve `api/v1/markers#create` performance against simultaneous requ…
mjankowski Jan 15, 2024
58830be
Streaming: Rework websocket server initialisation & authentication co…
ThisIsMissEm Jan 15, 2024
e81c5c0
Ignore the devise-two-factor advisory as we have rate limits in place…
ClearlyClaire Jan 15, 2024
1012ffa
New Crowdin Translations (automated) (#28721)
github-actions[bot] Jan 15, 2024
8013d6c
Update dependency faker to v3.2.3 (#28720)
renovate[bot] Jan 15, 2024
8cb4825
Fix sign-up restrictions based on email addresses not being enforced …
ClearlyClaire Jan 15, 2024
367be82
Update libretranslate/libretranslate Docker tag to v1.5.4 (#28727)
renovate[bot] Jan 15, 2024
50188ad
[Glitch] Use helpers to check environment in frontend (#2571)
ClearlyClaire Jan 15, 2024
b5afbe0
Update dependency bootsnap to v1.17.1 (#28713)
renovate[bot] Jan 15, 2024
82d28ac
Merge pull request #2567 from ClearlyClaire/glitch-soc/ports/convert-…
ClearlyClaire Jan 15, 2024
a2f02a0
Disable `Rails/SkipsModelValidations` cop (#28712)
mjankowski Jan 15, 2024
e621c1c
Fix registrations not checking MX records for email domain blocks req…
ClearlyClaire Jan 15, 2024
98b5f85
Rename and refactor `User#confirm!` to `User#mark_email_as_confirmed!…
ClearlyClaire Jan 15, 2024
7f471e7
Update new email templates (#28416)
hteumeuleu Jan 15, 2024
1323dfa
Merge commit 'a90696011e563e62100cba56e2d52f6babbaff00' into glitch-s…
ClearlyClaire Jan 15, 2024
60298af
Merge commit 'c6684aa1e392f2dd86af4362b4259809549abaad' into glitch-s…
ClearlyClaire Jan 15, 2024
464051c
Merge commit '1070804a1a6121170f7bba923789d73b978e6fe7' into glitch-s…
ClearlyClaire Jan 15, 2024
8cad0a4
[Glitch] Change icon SVG imports to use a default import
renchap Jan 12, 2024
2f521bc
Merge commit 'a2f02a07758c32f0dcc6388b4f30ca5a84e762f3' into glitch-s…
ClearlyClaire Jan 15, 2024
a192042
[Glitch] Switch from 48px weight 600 material symbol icons to 24px we…
ClearlyClaire Jan 12, 2024
278597c
Merge commit '98b5f85f10a3af50a54fcd79e09fc9fd88f774fa' into glitch-s…
ClearlyClaire Jan 15, 2024
4fcb372
Fix Ruby linting issue
ClearlyClaire Jan 15, 2024
6e4d5b4
Fix some icon-related styling issues
ClearlyClaire Jan 15, 2024
34c9f77
Merge commit '7f471e70c0e1cc106747634d20f173a68a9272d7' into glitch-s…
ClearlyClaire Jan 15, 2024
01df34b
Remove bypass and use use glitch-soc's theming system for inert.css
ClearlyClaire Jan 15, 2024
b4c3321
Use top-level `warn` in JS errors check (#28745)
mjankowski Jan 15, 2024
dee5616
Merge commit 'b4c332104a8b3748f619de250f77c0acc8e80628' into glitch-s…
ClearlyClaire Jan 15, 2024
f09035c
Update dependency stackprof to v0.2.26 (#28743)
renovate[bot] Jan 16, 2024
f0abba6
Ignore RecordNotUnique errors in LinkCrawlWorker (#28748)
tribela Jan 16, 2024
01b6c83
Add a new `@/` alias for the root frontend directory and use it where…
renchap Jan 16, 2024
e4d07c7
Merge commit '01b6c83c369061c2175d50dfb3ae1db502862664' into glitch-s…
ClearlyClaire Jan 16, 2024
5b67389
[Glitch] Add a new `@/` alias for the root frontend directory and use…
renchap Jan 16, 2024
1fa9da1
Merge pull request #2573 from ClearlyClaire/glitch-soc/merge-upstream
ClearlyClaire Jan 16, 2024
411efdc
Fix getting started misc column on dev env (#2575)
tribela Jan 16, 2024
e85e292
Update eslint (non-major) (#28729)
renovate[bot] Jan 16, 2024
4e277f8
Update devDependencies (non-major) (#28728)
renovate[bot] Jan 16, 2024
bd53859
Update formatjs monorepo (#28751)
renovate[bot] Jan 16, 2024
8cc322a
Update dependency concurrent-ruby to v1.2.3 (#28754)
renovate[bot] Jan 17, 2024
0ce081f
Remove monkey patch in favor of supported Devise config value (#28760)
mjankowski Jan 17, 2024
259874f
Update dependency @rails/ujs to v7.1.3 (#28771)
renovate[bot] Jan 17, 2024
afb5e6c
Update dependency rails to v7.1.3 (#28772)
renovate[bot] Jan 17, 2024
1b0cb3b
Announcement reactions query spec improvement and refactor (#28768)
mjankowski Jan 17, 2024
c523a96
Rename local webpack* var in development env CSP config (#28766)
mjankowski Jan 17, 2024
baab58c
Fix various icon alignment issues (#28775)
ClearlyClaire Jan 17, 2024
cb5ac15
Use a helper to avoid using `media/` asset prefixes (#28756)
renchap Jan 17, 2024
9a475ea
Finish up the CLI spec area pattern adoption for `CLI::Accounts#refre…
mjankowski Jan 17, 2024
1ab42ad
New Crowdin Translations (automated) (#28749)
github-actions[bot] Jan 17, 2024
6fab50b
Use bundler version 2.5.4 (#28765)
mjankowski Jan 17, 2024
1a3859d
Update follow and follow_request emails (#28755)
hteumeuleu Jan 17, 2024
e817fe4
Change media “ALT” label to a specific class (#28777)
ClearlyClaire Jan 17, 2024
09f76c5
Regenerate rubocop todo, removes last `Layout/LineLength` violation (…
mjankowski Jan 17, 2024
30b193b
Improve display of lock icon in account headers (#28780)
arbolitoloco1 Jan 17, 2024
127503e
Fix `Rails/RakeEnvironment` cop (#28782)
mjankowski Jan 17, 2024
8485bed
Merge commit '4e277f83dc740b3a842c7fd8ed167c3c76fcabf8' into glitch-s…
ClearlyClaire Jan 17, 2024
d56e9fb
[Glitch] Update devDependencies (non-major)
renovate[bot] Jan 16, 2024
c59fb65
Merge commit '127503eb2cdd67126974bee304dde0f183300b84' into glitch-s…
ClearlyClaire Jan 17, 2024
e829492
[Glitch] Fix various icon alignment issues
ClearlyClaire Jan 17, 2024
0207c4b
[Glitch] Change media “ALT” label to a specific class
ClearlyClaire Jan 17, 2024
036e25f
[Glitch] Improve display of lock icon in account headers
arbolitoloco1 Jan 17, 2024
83a90f2
Update dependency async-mutex to v0.4.1 (#28797)
renovate[bot] Jan 18, 2024
4c23297
Update dependency autoprefixer to v10.4.17 (#28794)
renovate[bot] Jan 18, 2024
89c9a45
Fix `Rails/WhereExists` cop in account/interactions concern (#28789)
mjankowski Jan 18, 2024
07e10e3
Combine assertions about same setup in `Account#suspend!` spec (#28787)
mjankowski Jan 18, 2024
6c5a2d5
Reduced repeated setup in `PurgeDomainService` spec (#28786)
mjankowski Jan 18, 2024
3d82040
Reduced repeated setup in `UnallowDomainService` spec (#28785)
mjankowski Jan 18, 2024
da31792
Fix `Rails/WhereExists` cop in FeaturedTag model (#28791)
mjankowski Jan 18, 2024
aaa6f2e
Group common `class_name` options in associations (#28779)
mjankowski Jan 18, 2024
81e4e65
Update links to upstream migration helpers, remove unused methods (#2…
mjankowski Jan 18, 2024
9fb9ef4
Fix `Rails/WhereExists` cop in User model (#28792)
mjankowski Jan 18, 2024
2115bc5
Order by sql in `CLI::Maintenance` task (#28289)
mjankowski Jan 18, 2024
0b85367
Add coverage for `api/v1/peers/search` endpoint and extract controlle…
mjankowski Jan 18, 2024
d0b3bc2
Remove unused `matches_domain` scopes on Account, DomainAllow, Domain…
mjankowski Jan 18, 2024
f0b93ab
Use AR `database_version` in PG version checks in migrations (#28804)
mjankowski Jan 18, 2024
f866413
Extract shared tagged statuses method in `FeaturedTag` (#28805)
mjankowski Jan 18, 2024
1335083
Streaming: replace npmlog with pino & pino-http (#27828)
ThisIsMissEm Jan 18, 2024
244182a
Update dependency rdf-normalize to v0.7.0 (#26769)
renovate[bot] Jan 18, 2024
5ae3bae
Update dependency sass to v1.70.0 (#28799)
renovate[bot] Jan 18, 2024
d80d8f6
Merge pull request #2577 from ClearlyClaire/glitch-soc/merge-upstream
ClearlyClaire Jan 18, 2024
07b6777
Fix styling issue in account fields (#2578)
ClearlyClaire Jan 18, 2024
528a8fa
Merge commit 'f866413e724c2e7f8329fbc6e96f56f0b186c62a' into glitch-s…
ClearlyClaire Jan 18, 2024
1480573
Add `Account.auditable` scope, fix N+1 in admin/action_logs#index (#2…
mjankowski Jan 19, 2024
de09176
Retry 401 errors on replies fetching (#28788)
ShadowJonathan Jan 19, 2024
fd64817
Fix `Rails/WhereExists` cop in app/lib/status_cache_hydrator (#28808)
mjankowski Jan 19, 2024
6dc9732
Update dependency intl-messageformat to v10.5.10 (#28809)
renovate[bot] Jan 19, 2024
6a1c998
Update dependency kt-paperclip to v7.2.2 (#28813)
renovate[bot] Jan 19, 2024
86cc88c
Fix banner image not showing in follow emails (#28814)
hteumeuleu Jan 19, 2024
329911b
Migrate controller->request spec for api/v1/follow* (#28811)
mjankowski Jan 19, 2024
4ec7d7d
Fix `Rails/WhereExists` cop in REST::TagSerializer model (#28790)
mjankowski Jan 19, 2024
163db81
Update dependency react-redux to v9.1.0 (#28717)
renovate[bot] Jan 19, 2024
9cd1702
New Crowdin Translations (automated) (#28798)
github-actions[bot] Jan 19, 2024
915cd36
Merge pull request #2579 from ClearlyClaire/glitch-soc/merge-upstream
ClearlyClaire Jan 19, 2024
6a5d70e
Update pre_migration_check postgres version requirement (#28800)
mjankowski Jan 19, 2024
5fc4ae7
Move privacy policy into markdown file (#28699)
mjankowski Jan 19, 2024
3593ee2
Add rate-limit of TOTP authentication attempts at controller level (#…
ClearlyClaire Jan 19, 2024
cf2a2ed
Fix processing of compacted single-item JSON-LD collections (#28816)
ClearlyClaire Jan 19, 2024
93957da
Fix error when processing remote files with unusually long names (#28…
ClearlyClaire Jan 19, 2024
9f8e3cc
Fix duplicate and missing keys in search popout component in web UI (…
Gargron Jan 21, 2024
3fbf019
Streaming: Move more methods to the utils from the main file (#28825)
ThisIsMissEm Jan 22, 2024
62001b5
Update dependency jsdom to v24 (#28836)
renovate[bot] Jan 22, 2024
9ff9849
Update dependency core-js to v3.35.1 (#28831)
renovate[bot] Jan 22, 2024
a83aecc
Update dependency dotenv to v16.3.2 (#28824)
renovate[bot] Jan 22, 2024
e078d00
Update dependency @types/react to v18.2.48 (#28839)
renovate[bot] Jan 22, 2024
9620b21
docs: update FEDERATION.md to more closely follow FEP conventions. (#…
andypiper Jan 22, 2024
76e383e
New Crowdin Translations (automated) (#28827)
github-actions[bot] Jan 22, 2024
5efb00d
Use ruby version 3.2.3 (#28817)
mjankowski Jan 22, 2024
7ecf7f5
Move controller->request specs for api/v1/statuses/* (#28818)
mjankowski Jan 22, 2024
18004bf
Add `Account.matches_uri_prefix` scope and use in activitypub/followe…
mjankowski Jan 22, 2024
e2d9635
Add notification email on invalid second authenticator (#28822)
ClearlyClaire Jan 22, 2024
3cac826
Merge commit '1335083bedd1dd563cfa9c54e69abc189ba3ec7b' into glitch-s…
ClearlyClaire Jan 22, 2024
0700eb5
Merge commit '163db814c2b3cf544b78e427e7f7bbd99b94a025' into glitch-s…
ClearlyClaire Jan 22, 2024
1d381c1
[Glitch] Update dependency react-redux to v9.1.0
renovate[bot] Jan 19, 2024
102eff7
Merge commit 'e2d9635074ad33cc8144adc434bcd90faae9c424' into glitch-s…
ClearlyClaire Jan 22, 2024
72bae7e
[Glitch] Fix duplicate and missing keys in search popout component in…
Gargron Jan 21, 2024
67f54c4
Fix `Rails/WhereExists` cop in app/validators (#28854)
mjankowski Jan 23, 2024
defe5f4
Fix `Rails/WhereExists` cop in lib/tasks (#28852)
mjankowski Jan 23, 2024
b0207d7
Add coverage for `Tag.recently_used` scope (#28850)
mjankowski Jan 23, 2024
d03fe2b
N+1 fixes for CLI maintenance command (#28847)
mjankowski Jan 23, 2024
78ee145
New Crowdin Translations (automated) (#28857)
github-actions[bot] Jan 23, 2024
ceade78
Fix `Rails/WhereExists` cop in app/services (#28853)
mjankowski Jan 23, 2024
c0e8e45
Eager loading fixes for `api/` controllers (#28848)
mjankowski Jan 23, 2024
61a0ec6
chore(deps): update devdependencies (non-major) (#28840)
renovate[bot] Jan 23, 2024
01ce9df
Fix search form re-rendering spuriously in web UI (#28876)
Gargron Jan 24, 2024
5b1eb09
Add annual reports for accounts (#28693)
Gargron Jan 24, 2024
599bc69
Simplify `AccountSummary.filtered` query generation (#28868)
mjankowski Jan 24, 2024
9d413cb
Fix `Rails/WhereExists` cop in app/models (#28863)
mjankowski Jan 24, 2024
a34d27c
New Crowdin Translations (automated) (#28875)
github-actions[bot] Jan 24, 2024
a11a2fb
Add error classes to api/base errors coverage (#28864)
mjankowski Jan 24, 2024
7a1f087
Add `created_before` and `updated_before` scopes to `MediaAttachment`…
mjankowski Jan 24, 2024
b19ae52
Add confirmation when redirecting logged-out requests to permalink (#…
Gargron Jan 24, 2024
634acd0
Merge pull request #2580 from ClearlyClaire/glitch-soc/merge-upstream
ClearlyClaire Jan 24, 2024
41c2af2
chore(deps): update dependency rubocop to v1.60.1 (#28731)
renovate[bot] Jan 24, 2024
1290fed
Fix `Rails/WhereExists` cop in app/lib (#28862)
mjankowski Jan 24, 2024
5a838ce
Use active variants for boost icons and increase icon size (#27924)
ClearlyClaire Jan 24, 2024
64993d3
chore(deps): update dependency haml_lint to v0.55.0 (#28856)
renovate[bot] Jan 24, 2024
ea5397c
chore(deps): update dependency selenium-webdriver to v4.17.0 (#28858)
renovate[bot] Jan 24, 2024
559bbf0
chore(deps): update artifact actions (major) to v4 (major) (#28415)
renovate[bot] Jan 24, 2024
7019af4
fix(deps): update dependency dotenv to v16.4.0 (#28872)
renovate[bot] Jan 24, 2024
9c5be13
chore(deps): update dependency chewy to v7.5.0 (#28730)
renovate[bot] Jan 24, 2024
38f7f8b
Tidy up association declaration in `Instance` model (#28880)
mjankowski Jan 24, 2024
22cfab0
Merge commit '01ce9df88008cee705b7e02a4581802afa07c3df' into glitch-s…
ClearlyClaire Jan 24, 2024
22e419f
[Glitch] Fix search form re-rendering spuriously in web UI
Gargron Jan 24, 2024
9a8293f
Fix process of receiving posts with bearcaps is not working (#26527)
kmycode Jan 25, 2024
c50274a
Fix redirect confirmation for accounts (#28902)
ClearlyClaire Jan 25, 2024
0471a78
Add tests for redirect confirmations (#28903)
ClearlyClaire Jan 25, 2024
087415d
Add tests for processing statuses using bearcap URIs (#28904)
ClearlyClaire Jan 25, 2024
d158f7e
chore(deps): update dependency rspec-rails to v6.1.1 (#28905)
renovate[bot] Jan 25, 2024
1a565e4
fix(deps): update dependency axios to v1.6.6 (#28895)
renovate[bot] Jan 25, 2024
7c9c6c7
Fix remaining `Rails/WhereExists` cop violations, regenerate todo (#2…
mjankowski Jan 25, 2024
a69506a
fix(deps): update dependency dotenv to v16.4.1 (#28889)
renovate[bot] Jan 25, 2024
6b6586f
Add `CustomFilterKeyword#to_regex` method (#28893)
mjankowski Jan 25, 2024
59d2ea0
New Crowdin Translations (automated) (#28899)
github-actions[bot] Jan 25, 2024
ca7053f
Consolidate db test prep steps to rake task (#28886)
mjankowski Jan 25, 2024
c8f59d2
Fix `Style/TernaryParentheses` cop (#28387)
mjankowski Jan 25, 2024
2866106
Reduce factory creation in `spec/models/account_statuses_cleanup_poli…
mjankowski Jan 25, 2024
274a48a
Extract helper methods for db connection and table existence check in…
mjankowski Jan 25, 2024
3205a65
Refactor conversations components in web UI (#28833)
Gargron Jan 25, 2024
17ea226
Fix `Style/GuardClause` cop in app/controllers (#28420)
mjankowski Jan 25, 2024
0b38946
Update paperclip and climate_control gems (#28379)
mjankowski Jan 25, 2024
4cdf62e
Extract `rebuild_index` method in maintenance CLI (#28911)
mjankowski Jan 25, 2024
42ab855
Add specs for `Instance` model scopes and add `with_domain_follows` s…
mjankowski Jan 25, 2024
adde803
Merge pull request #2583 from ClearlyClaire/glitch-soc/merge-upstream
ClearlyClaire Jan 25, 2024
70de52c
Merge commit '7a1f087659204e9d0cbba2de37e45b1921cefe20' into glitch-s…
ClearlyClaire Jan 25, 2024
108fb33
Merge pull request #2584 from ClearlyClaire/glitch-soc/merge-upstream
ClearlyClaire Jan 26, 2024
ae9c675
New Crowdin Translations (automated) (#2564)
github-actions[bot] Jan 26, 2024
5fa2821
Merge commit '3205a654caf903002c2db872f802a3332201678b' into glitch-s…
ClearlyClaire Jan 26, 2024
e5f5047
[Glitch] Add confirmation when redirecting logged-out requests to per…
Gargron Jan 24, 2024
54ece50
[Glitch] Use active variants for boost icons and increase icon size
ClearlyClaire Jan 24, 2024
dd7a669
Fix CSS loading in redirect controller
ClearlyClaire Jan 26, 2024
420ca90
Merge pull request #2585 from ClearlyClaire/glitch-soc/merge-upstream
ClearlyClaire Jan 27, 2024
bf153b3
Merge commit '42ab855b2339c5cea3229c856ab539f883736b12' into glitch-s…
ClearlyClaire Jan 27, 2024
a4e7cc2
Merge pull request #2590 from ClearlyClaire/glitch-soc/merge-upstream
ClearlyClaire Jan 28, 2024
80308d3
[Glitch] Refactor conversations components in web UI (#2589)
ClearlyClaire Jan 28, 2024
aff4200
Merge upstream
sneakers-the-rat Jan 29, 2024
6bbc268
merge dev into merge-upstream
sneakers-the-rat Jan 29, 2024
c0b71ff
add nonce to CSP headers in remote interaction helper
sneakers-the-rat Jan 29, 2024
3ede233
Fix crash in private mention conversations in glitch-soc flavor (#2595)
ClearlyClaire Jan 30, 2024
8b87673
Remove obsolete locale file (#2596)
ClearlyClaire Jan 30, 2024
a48447a
Add github action workflow for manual security builds (#29040)
ClearlyClaire Feb 1, 2024
85bdd14
Adapt workflow to glitch-soc
ClearlyClaire Feb 1, 2024
883f589
Fix missing `workflow_dispatch` trigger for `build-security` (#29041)
ClearlyClaire Feb 1, 2024
7bb5f6e
Merge pull request #2599 from ClearlyClaire/glitch-soc/build-action
ClearlyClaire Feb 1, 2024
f4416e6
Configure selenium to use Chrome version 120 (#29038)
mjankowski Feb 1, 2024
626ff32
Merge pull request #2600 from ClearlyClaire/glitch-soc/fixes/failures
ClearlyClaire Feb 1, 2024
a7b1600
Fix security builds not being marked latest
ClearlyClaire Feb 1, 2024
3866597
Merge pull request #2601 from ClearlyClaire/glitch-soc/fixes/security…
ClearlyClaire Feb 1, 2024
ff58ec0
Merge pull request from GHSA-3fjr-858r-92rw
ClearlyClaire Feb 1, 2024
63d7a30
Fix build-security workflow for glitch-soc
ClearlyClaire Feb 1, 2024
970320d
Restore -streaming suffix for security builds (#2602)
insom Feb 1, 2024
c3936cb
Temporary hack to correctly tag the security docker image…
ClearlyClaire Feb 1, 2024
5bc39b3
Fix build-security docker tags
ClearlyClaire Feb 1, 2024
da9adbd
Merge branch 'glitch-soc-main' into merge-upstream
sneakers-the-rat Feb 2, 2024
ce4ae72
Merge dev back into merge-upstream
sneakers-the-rat Feb 2, 2024
e42e418
Vendor MathJax
sneakers-the-rat Feb 2, 2024
9364a02
Correctly get nonce when spawning style nodes.
sneakers-the-rat Feb 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions .bundler-audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
ignore:
# devise-two-factor advisory about brute-forcing TOTP
# We have rate-limits on authentication endpoints in place (including second
# factor verification) since Mastodon v3.2.0
- CVE-2024-0227
4 changes: 2 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM mcr.microsoft.com/devcontainers/ruby:1-3.2-bullseye
# Install Rails
# RUN gem install rails webdrivers

ARG NODE_VERSION="16"
ARG NODE_VERSION="20"
RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"

# [Optional] Uncomment this section to install additional OS packages.
Expand All @@ -15,6 +15,6 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
RUN gem install foreman

# [Optional] Uncomment this line to install global node packages.
RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g yarn" 2>&1
RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && corepack enable" 2>&1

COPY welcome-message.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt
18 changes: 9 additions & 9 deletions .devcontainer/codespaces/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",

"features": {
"ghcr.io/devcontainers/features/sshd:1": {}
"ghcr.io/devcontainers/features/sshd:1": {},
},

"runServices": ["app", "db", "redis"],
Expand All @@ -15,16 +15,16 @@
"portsAttributes": {
"3000": {
"label": "web",
"onAutoForward": "notify"
"onAutoForward": "notify",
},
"4000": {
"label": "stream",
"onAutoForward": "silent"
}
"onAutoForward": "silent",
},
},

"otherPortsAttributes": {
"onAutoForward": "silent"
"onAutoForward": "silent",
},

"remoteEnv": {
Expand All @@ -33,7 +33,7 @@
"STREAMING_API_BASE_URL": "https://${localEnv:CODESPACE_NAME}-4000.app.github.dev",
"DISABLE_FORGERY_REQUEST_PROTECTION": "true",
"ES_ENABLED": "",
"LIBRE_TRANSLATE_ENDPOINT": ""
"LIBRE_TRANSLATE_ENDPOINT": "",
},

"onCreateCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}",
Expand All @@ -43,7 +43,7 @@
"customizations": {
"vscode": {
"settings": {},
"extensions": ["EditorConfig.EditorConfig", "webben.browserslist"]
}
}
"extensions": ["EditorConfig.EditorConfig", "webben.browserslist"],
},
},
}
16 changes: 8 additions & 8 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",

"features": {
"ghcr.io/devcontainers/features/sshd:1": {}
"ghcr.io/devcontainers/features/sshd:1": {},
},

"forwardPorts": [3000, 4000],
Expand All @@ -14,17 +14,17 @@
"3000": {
"label": "web",
"onAutoForward": "notify",
"requireLocalPort": true
"requireLocalPort": true,
},
"4000": {
"label": "stream",
"onAutoForward": "silent",
"requireLocalPort": true
}
"requireLocalPort": true,
},
},

"otherPortsAttributes": {
"onAutoForward": "silent"
"onAutoForward": "silent",
},

"onCreateCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}",
Expand All @@ -34,7 +34,7 @@
"customizations": {
"vscode": {
"settings": {},
"extensions": ["EditorConfig.EditorConfig", "webben.browserslist"]
}
}
"extensions": ["EditorConfig.EditorConfig", "webben.browserslist"],
},
},
}
2 changes: 1 addition & 1 deletion .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ services:
hard: -1

libretranslate:
image: libretranslate/libretranslate:v1.3.12
image: libretranslate/libretranslate:v1.5.4
restart: unless-stopped
volumes:
- lt-data:/home/libretranslate/.local
Expand Down
5 changes: 3 additions & 2 deletions .devcontainer/post-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ bundle install
git checkout -- Gemfile.lock

# Fetch Javascript dependencies
yarn --frozen-lockfile
corepack prepare
yarn install --immutable

# [re]create, migrate, and seed the test database
RAILS_ENV=test ./bin/rails db:setup
Expand All @@ -23,4 +24,4 @@ RAILS_ENV=development ./bin/rails db:setup
RAILS_ENV=development ./bin/rails assets:precompile

# Precompile assets for test
RAILS_ENV=test NODE_ENV=tests ./bin/rails assets:precompile
RAILS_ENV=test ./bin/rails assets:precompile
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
public/system
public/assets
public/packs
public/packs-test
node_modules
neo4j
vendor/bundle
Expand Down
4 changes: 2 additions & 2 deletions .env.test
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Node.js
NODE_ENV=tests
# In test, compile the NodeJS code as if we are in production
NODE_ENV=production
# Federation
LOCAL_DOMAIN=cb6e6126.ngrok.io
LOCAL_HTTPS=true
34 changes: 18 additions & 16 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
module.exports = {
// @ts-check
const { defineConfig } = require('eslint-define-config');

module.exports = defineConfig({
root: true,

extends: [
Expand Down Expand Up @@ -117,7 +120,6 @@ module.exports = {
'react/jsx-uses-react': 'off', // not needed with new JSX transform
'react/jsx-wrap-multilines': 'error',
'react/no-deprecated': 'off',
'react/no-unknown-property': 'off',
'react/react-in-jsx-scope': 'off', // not needed with new JSX transform
'react/self-closing-comp': 'error',

Expand Down Expand Up @@ -193,6 +195,7 @@ module.exports = {
'error',
{
devDependencies: [
'.eslintrc.js',
'config/webpack/**',
'app/javascript/mastodon/performance.js',
'app/javascript/mastodon/test_setup.js',
Expand Down Expand Up @@ -242,7 +245,7 @@ module.exports = {
},
// Immutable / Redux / data store
{
pattern: '{immutable,react-redux,react-immutable-proptypes,react-immutable-pure-component,reselect}',
pattern: '{immutable,@reduxjs/toolkit,react-redux,react-immutable-proptypes,react-immutable-pure-component}',
group: 'external',
position: 'before',
},
Expand Down Expand Up @@ -297,7 +300,6 @@ module.exports = {
'formatjs/no-id': 'off', // IDs are used for translation keys
'formatjs/no-invalid-icu': 'error',
'formatjs/no-literal-string-in-jsx': 'off', // Should be looked at, but mainly flagging punctuation outside of strings
'formatjs/no-multiple-plurals': 'off', // Only used by hashtag.jsx
'formatjs/no-multiple-whitespaces': 'error',
'formatjs/no-offset': 'error',
'formatjs/no-useless-message': 'error',
Expand All @@ -316,6 +318,7 @@ module.exports = {
overrides: [
{
files: [
'.eslintrc.js',
'*.config.js',
'.*rc.js',
'ide-helper.js',
Expand Down Expand Up @@ -366,8 +369,15 @@ module.exports = {
'@typescript-eslint/consistent-type-definitions': ['warn', 'interface'],
'@typescript-eslint/consistent-type-exports': 'error',
'@typescript-eslint/consistent-type-imports': 'error',
"@typescript-eslint/prefer-nullish-coalescing": ['error', {ignorePrimitives: {boolean: true}}],

"@typescript-eslint/prefer-nullish-coalescing": ['error', { ignorePrimitives: { boolean: true } }],
"@typescript-eslint/no-restricted-imports": [
"warn",
{
"name": "react-redux",
"importNames": ["useSelector", "useDispatch"],
"message": "Use typed hooks `useAppDispatch` and `useAppSelector` instead."
}
],
'jsdoc/require-jsdoc': 'off',

// Those rules set stricter rules for TS files
Expand All @@ -389,14 +399,6 @@ module.exports = {
env: {
jest: true,
},
},
{
files: [
'streaming/**/*',
],
rules: {
'import/no-commonjs': 'off',
},
},
}
],
};
});
29 changes: 26 additions & 3 deletions .github/actions/setup-javascript/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,34 @@ runs:
using: 'composite'
steps:
- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: yarn
node-version-file: '.nvmrc'

# The following is needed because we can not use `cache: true` for `setup-node`, as it does not support Corepack yet and mess up with the cache location if ran after Node is installed
- name: Enable corepack
shell: bash
run: corepack enable

- name: Get yarn cache directory path
id: yarn-cache-dir-path
shell: bash
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT

- uses: actions/cache@v3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install all yarn packages
shell: bash
run: yarn --frozen-lockfile ${{ inputs.onlyProduction != 'false' && '--production' || '' }}
run: yarn install --immutable
if: inputs.onlyProduction == 'false'

- name: Install all production yarn packages
shell: bash
run: yarn workspaces focus --production
if: inputs.onlyProduction != 'false'
13 changes: 13 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
coverage:
status:
project:
default:
# Github status check is not blocking
informational: true
patch:
default:
# Github status check is not blocking
informational: true
comment:
# Only write a comment in PR if there are changes
require_changes: true
13 changes: 12 additions & 1 deletion .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// If we do not want a package to be grouped with others, we need to set its groupName
// to `null` after any other rule set it to something.
dependencyDashboardHeader: 'This issue lists Renovate updates and detected dependencies. Read the [Dependency Dashboard](https://docs.renovatebot.com/key-concepts/dashboard/) docs to learn more. Before approving any upgrade: read the description and comments in the [`renovate.json5` file](https://github.com/mastodon/mastodon/blob/main/.github/renovate.json5).',
postUpdateOptions: ['yarnDedupeHighest'],
packageRules: [
{
// Require Dependency Dashboard Approval for major version bumps of these node packages
Expand All @@ -21,6 +22,7 @@
'react-hotkeys', // Requires code changes

// Requires Webpacker upgrade or replacement
'@svgr/webpack',
'@types/webpack',
'babel-loader',
'compression-webpack-plugin',
Expand Down Expand Up @@ -48,7 +50,6 @@
matchManagers: ['bundler'],
matchPackageNames: [
'rack', // Needs to be synced with Rails version
'sprockets', // Requires manual upgrade https://github.com/rails/sprockets/blob/master/UPGRADING.md#guide-to-upgrading-from-sprockets-3x-to-4x
'strong_migrations', // Requires manual upgrade
'sidekiq', // Requires manual upgrade
'sidekiq-unique-jobs', // Requires manual upgrades and sync with Sidekiq version
Expand Down Expand Up @@ -98,6 +99,16 @@
matchUpdateTypes: ['patch', 'minor'],
groupName: 'eslint (non-major)',
},
{
// Group actions/*-artifact in the same PR
matchManagers: ['github-actions'],
matchPackageNames: [
'actions/download-artifact',
'actions/upload-artifact',
],
matchUpdateTypes: ['major'],
groupName: 'artifact actions (major)',
},
{
// Update @types/* packages every week, with one grouped PR
matchPackagePrefixes: '@types/',
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build-container-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ on:
type: string
labels:
type: string
file_to_build:
type: string

jobs:
build-image:
Expand Down Expand Up @@ -86,6 +88,7 @@ jobs:
- uses: docker/build-push-action@v5
with:
context: .
file: ${{ inputs.file_to_build }}
build-args: |
MASTODON_VERSION_PRERELEASE=${{ inputs.version_prerelease }}
MASTODON_VERSION_METADATA=${{ inputs.version_metadata }}
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/build-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
needs: compute-suffix
uses: ./.github/workflows/build-container-image.yml
with:
file_to_build: Dockerfile
platforms: linux/amd64,linux/arm64
use_native_arm64_builder: false
cache: false
Expand All @@ -40,3 +41,24 @@ jobs:
type=raw,value=nightly
type=schedule,pattern=${{ needs.compute-suffix.outputs.prerelease }}
secrets: inherit

build-image-streaming:
needs: compute-suffix
uses: ./.github/workflows/build-container-image.yml
with:
file_to_build: streaming/Dockerfile
platforms: linux/amd64,linux/arm64
use_native_arm64_builder: false
cache: false
push_to_images: |
ghcr.io/${{ github.repository_owner }}/mastodon-streaming
version_prerelease: ${{ needs.compute-suffix.outputs.prerelease }}
labels: |
org.opencontainers.image.description=Nightly build image used for testing purposes
flavor: |
latest=true
tags: |
type=raw,value=edge
type=raw,value=nightly
type=schedule,pattern=${{ needs.compute-suffix.outputs.prerelease }}
secrets: inherit
Loading
Loading