Skip to content

Commit d58ef77

Browse files
authored
Merge remote-tracking branch 'mastodon/main' into custom/cat
2 parents a7e42f2 + 5f87ae1 commit d58ef77

File tree

2,064 files changed

+62491
-36982
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,064 files changed

+62491
-36982
lines changed

.annotaterb.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
:position: before
3+
:position_in_additional_file_patterns: before
4+
:position_in_class: before
5+
:position_in_factory: before
6+
:position_in_fixture: before
7+
:position_in_routes: before
8+
:position_in_serializer: before
9+
:position_in_test: before
10+
:classified_sort: true
11+
:exclude_controllers: true
12+
:exclude_factories: true
13+
:exclude_fixtures: true
14+
:exclude_helpers: true
15+
:exclude_scaffolds: true
16+
:exclude_serializers: true
17+
:exclude_sti_subclasses: true
18+
:exclude_tests: true
19+
:force: false
20+
:format_markdown: false
21+
:format_rdoc: false
22+
:format_yard: false
23+
:frozen: false
24+
:ignore_model_sub_dir: false
25+
:ignore_unknown_models: false
26+
:include_version: false
27+
:show_complete_foreign_keys: false
28+
:show_foreign_keys: false
29+
:show_indexes: false
30+
:simple_indexes: false
31+
:sort: false
32+
:timestamp: false
33+
:trace: false
34+
:with_comment: true
35+
:with_column_comments: true
36+
:with_table_comments: true
37+
:active_admin: false
38+
:command:
39+
:debug: false
40+
:hide_default_column_types: ''
41+
:hide_limit_column_types: 'integer,boolean'
42+
:ignore_columns:
43+
:ignore_routes:
44+
:models: true
45+
:routes: false
46+
:skip_on_db_migrate: false
47+
:target_action: :do_annotations
48+
:wrapper:
49+
:wrapper_close:
50+
:wrapper_open:
51+
:classes_default_to_s: []
52+
:additional_file_patterns: []
53+
:model_dir:
54+
- app/models
55+
:require: []
56+
:root_dir:
57+
- ''
58+
59+
:show_check_constraints: false

.browserslistrc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
[production]
21
defaults
32
> 0.2%
43
firefox >= 78
54
ios >= 15.6
65
not dead
76
not OperaMini all
8-
9-
[development]
10-
supports es6-module

.devcontainer/compose.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ services:
1010
RAILS_ENV: development
1111
NODE_ENV: development
1212
BIND: 0.0.0.0
13+
BOOTSNAP_CACHE_DIR: /tmp
1314
REDIS_HOST: redis
1415
REDIS_PORT: '6379'
1516
DB_HOST: db
@@ -20,12 +21,13 @@ services:
2021
ES_HOST: es
2122
ES_PORT: '9200'
2223
LIBRE_TRANSLATE_ENDPOINT: http://libretranslate:5000
24+
LOCAL_DOMAIN: ${LOCAL_DOMAIN:-localhost:3000}
2325
# Overrides default command so things don't shut down after the process ends.
2426
command: sleep infinity
2527
ports:
26-
- '127.0.0.1:3000:3000'
27-
- '127.0.0.1:3035:3035'
28-
- '127.0.0.1:4000:4000'
28+
- '3000:3000'
29+
- '3035:3035'
30+
- '4000:4000'
2931
networks:
3032
- external_network
3133
- internal_network
@@ -69,7 +71,7 @@ services:
6971
hard: -1
7072

7173
libretranslate:
72-
image: libretranslate/libretranslate:v1.6.1
74+
image: libretranslate/libretranslate:v1.6.2
7375
restart: unless-stopped
7476
volumes:
7577
- lt-data:/home/libretranslate/.local

.dockerignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,9 @@ postgres14
2020
redis
2121
elasticsearch
2222
chart
23+
.yarn/
24+
!.yarn/patches
25+
!.yarn/plugins
26+
!.yarn/releases
27+
!.yarn/sdks
28+
!.yarn/versions

.env.production.sample

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,17 @@ ES_PASS=password
4545
SECRET_KEY_BASE=
4646
OTP_SECRET=
4747

48+
# Encryption secrets
49+
# ------------------
50+
# Must be available (and set to same values) for all server processes
51+
# These are private/secret values, do not share outside hosting environment
52+
# Use `bin/rails db:encryption:init` to generate fresh secrets
53+
# Do NOT change these secrets once in use, as this would cause data loss and other issues
54+
# ------------------
55+
# ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY=
56+
# ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT=
57+
# ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY=
58+
4859
# Web Push
4960
# --------
5061
# Generate with `bundle exec rails mastodon:webpush:generate_vapid_key`
@@ -68,10 +79,34 @@ AWS_ACCESS_KEY_ID=
6879
AWS_SECRET_ACCESS_KEY=
6980
S3_ALIAS_HOST=files.example.com
7081

82+
# Optional list of hosts that are allowed to serve media for your instance
83+
# EXTRA_MEDIA_HOSTS=https://data.example1.com,https://data.example2.com
84+
7185
# IP and session retention
7286
# -----------------------
7387
# Make sure to modify the scheduling of ip_cleanup_scheduler in config/sidekiq.yml
7488
# to be less than daily if you lower IP_RETENTION_PERIOD below two days (172800).
7589
# -----------------------
7690
IP_RETENTION_PERIOD=31556952
7791
SESSION_RETENTION_PERIOD=31556952
92+
93+
# Fetch All Replies Behavior
94+
# --------------------------
95+
# When a user expands a post (DetailedStatus view), fetch all of its replies
96+
# (default: false)
97+
FETCH_REPLIES_ENABLED=false
98+
99+
# Period to wait between fetching replies (in minutes)
100+
FETCH_REPLIES_COOLDOWN_MINUTES=15
101+
102+
# Period to wait after a post is first created before fetching its replies (in minutes)
103+
FETCH_REPLIES_INITIAL_WAIT_MINUTES=5
104+
105+
# Max number of replies to fetch - total, recursively through a whole reply tree
106+
FETCH_REPLIES_MAX_GLOBAL=1000
107+
108+
# Max number of replies to fetch - for a single post
109+
FETCH_REPLIES_MAX_SINGLE=500
110+
111+
# Max number of replies Collection pages to fetch - total
112+
FETCH_REPLIES_MAX_PAGES=500

.eslintignore

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)