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 changes up to 7ed9c590b98610f8d68deab9ef8df260eec6d8f0 #2850

Merged
merged 52 commits into from
Sep 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
f3f06da
Update dependency babel-loader to v8.4.1 (#31931)
renovate[bot] Sep 18, 2024
a397141
Move non-action public method controller callback to private methods …
mjankowski Sep 18, 2024
b7548db
Update dependency memory_profiler to v1.1.0 (#31947)
renovate[bot] Sep 18, 2024
bd86c69
New Crowdin Translations (automated) (#31959)
github-actions[bot] Sep 18, 2024
6f3d751
Update dependency dotenv to v3.1.4 (#31953)
renovate[bot] Sep 18, 2024
9437386
Remove unneeded `to_s` on `Link` header comparison in statuses contro…
mjankowski Sep 18, 2024
eb16763
Use `have_http_link_header` matcher in `api/v1/trends/*` specs (#31940)
mjankowski Sep 18, 2024
a791274
Update dependency sass to v1.79.1 (#31958)
renovate[bot] Sep 18, 2024
7740f1a
Mute XHR abort errors (#31952)
c960657 Sep 18, 2024
2d399f5
Update dependency pg-connection-string to v2.7.0 (#31950)
renovate[bot] Sep 18, 2024
5405bdd
Remove unused E2EE messaging code (#31193)
mjankowski Sep 18, 2024
6f836c4
Remove `crypto` values from doorkeeper application/token `scopes` (#3…
mjankowski Sep 18, 2024
bf8eaaa
Convert controller spec for security_key_options endpoint to request …
mjankowski Sep 18, 2024
42f9f50
Update dependency pg to v8.13.0 (#31949)
renovate[bot] Sep 18, 2024
e3baa1c
Add coverage for `AccountDeletionRequest` class (#31937)
mjankowski Sep 18, 2024
8b70834
Fix the appearance of avatars when they do not load (#31966)
renchap Sep 18, 2024
29656cb
Fix sass deprecation warning (#31961)
Gargron Sep 18, 2024
62a39d6
Fix rolling updates by moving DropEndToEndMessageTables to post-deplo…
ClearlyClaire Sep 19, 2024
90db524
Update dependency puma to v6.4.3 (#31975)
renovate[bot] Sep 19, 2024
1fce55c
Update dependency aws-sdk-s3 to v1.163.0 (#31972)
renovate[bot] Sep 19, 2024
b071e61
Combine API request spec assertions (#31970)
mjankowski Sep 19, 2024
5d573c9
Remove unused E2EE-related methods (#31964)
mjankowski Sep 19, 2024
efdc175
New Crowdin Translations (automated) (#31974)
github-actions[bot] Sep 19, 2024
ef4d6ab
Fix browser glitch caused by two overlapping scroll animations in web…
Gargron Sep 19, 2024
6801afa
Update dependency devise-two-factor to v6 [SECURITY] (#31957)
renovate[bot] Sep 19, 2024
2946a92
Use `headers` shorthand in mailers (#31956)
mjankowski Sep 19, 2024
5a8f2fe
Convert `settings/exports` controller spec to system/request specs (#…
mjankowski Sep 19, 2024
57a38f0
Fix custom `history.push` and `history.replace` building bogus locati…
ClearlyClaire Sep 19, 2024
ae03e4f
Update directory page options to use URL params (#31977)
renchap Sep 19, 2024
09459ed
Update dependency react-select to v5.8.1 (#31982)
renovate[bot] Sep 20, 2024
9a03902
Capture actual behavior in v2/notifications "someone else" dismiss sc…
mjankowski Sep 20, 2024
840fd69
Update dependency sass to v1.79.2 (#31992)
renovate[bot] Sep 20, 2024
162f9a3
New Crowdin Translations (automated) (#31993)
github-actions[bot] Sep 20, 2024
c922af2
Add `LIMIT` constant for `api/v1/peers/search` endpoint (#31989)
mjankowski Sep 20, 2024
04a939d
Add `reviewed` and `unreviewed` scopes to `Reviewable` model concern …
mjankowski Sep 20, 2024
e7fd098
Change zoom icon in web UI (#29683)
Gargron Sep 20, 2024
8afa3bb
Change Mastodon to issue correctly-signed queries by default (#31994)
ClearlyClaire Sep 20, 2024
bdf83c3
Move default embed size knowledge into `OEmbedSerializer` (#31990)
mjankowski Sep 20, 2024
a7dbf6f
Use heredoc/squish for inline css styles in oembed serializer (#31991)
mjankowski Sep 20, 2024
6632606
Add `response.content_type` checks for JSON to `api/v1` request specs…
mjankowski Sep 20, 2024
171394e
Add coverage for CSV responses for severed relationships (#31962)
mjankowski Sep 20, 2024
d55f4fb
Add content type checks to api/v2 request specs (#31983)
mjankowski Sep 20, 2024
ed8b0e4
Fix links for reblogs in moderation interface (#31979)
ClearlyClaire Sep 20, 2024
7ed9c59
Fix issue when encountering reblog of deleted post in feed rebuild (#…
ClearlyClaire Sep 20, 2024
221bba1
Merge commit '7ed9c590b98610f8d68deab9ef8df260eec6d8f0' into glitch-s…
ClearlyClaire Sep 21, 2024
0820cbc
[Glitch] Mute XHR abort errors
c960657 Sep 18, 2024
d77348f
[Glitch] Fix the appearance of avatars when they do not load
renchap Sep 18, 2024
80cb285
[Glitch] Fix sass deprecation warning
Gargron Sep 18, 2024
9bd5838
[Glitch] Fix browser glitch caused by two overlapping scroll animatio…
Gargron Sep 19, 2024
86b9d3b
[Glitch] Fix custom `history.push` and `history.replace` building bog…
ClearlyClaire Sep 19, 2024
03829d8
[Glitch] Update directory page options to use URL params
renchap Sep 19, 2024
a969c6a
[Glitch] Change zoom icon in web UI
Gargron Sep 20, 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
  •  
  •  
  •  
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ gem 'color_diff', '~> 0.1'
gem 'csv', '~> 3.2'
gem 'discard', '~> 1.2'
gem 'doorkeeper', '~> 5.6'
gem 'ed25519', '~> 1.3'
gem 'fast_blank', '~> 1.0'
gem 'fastimage'
gem 'hiredis', '~> 0.6'
Expand Down
18 changes: 8 additions & 10 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -100,20 +100,20 @@ GEM
attr_required (1.0.2)
awrence (1.2.1)
aws-eventstream (1.3.0)
aws-partitions (1.974.0)
aws-sdk-core (3.205.0)
aws-partitions (1.977.0)
aws-sdk-core (3.206.0)
aws-eventstream (~> 1, >= 1.3.0)
aws-partitions (~> 1, >= 1.651.0)
aws-sigv4 (~> 1.9)
jmespath (~> 1, >= 1.6.1)
aws-sdk-kms (1.91.0)
aws-sdk-core (~> 3, >= 3.205.0)
aws-sigv4 (~> 1.5)
aws-sdk-s3 (1.162.0)
aws-sdk-s3 (1.163.0)
aws-sdk-core (~> 3, >= 3.205.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.5)
aws-sigv4 (1.9.1)
aws-sigv4 (1.10.0)
aws-eventstream (~> 1, >= 1.0.2)
azure-storage-blob (2.0.3)
azure-storage-common (~> 2.0)
Expand Down Expand Up @@ -197,7 +197,7 @@ GEM
railties (>= 4.1.0)
responders
warden (~> 1.2.3)
devise-two-factor (5.1.0)
devise-two-factor (6.0.0)
activesupport (~> 7.0)
devise (~> 4.0)
railties (~> 7.0)
Expand All @@ -212,9 +212,8 @@ GEM
domain_name (0.6.20240107)
doorkeeper (5.7.1)
railties (>= 5)
dotenv (3.1.2)
dotenv (3.1.4)
drb (2.2.1)
ed25519 (1.3.0)
elasticsearch (7.17.11)
elasticsearch-api (= 7.17.11)
elasticsearch-transport (= 7.17.11)
Expand Down Expand Up @@ -429,7 +428,7 @@ GEM
addressable (~> 2.5)
azure-storage-blob (~> 2.0.1)
hashie (~> 5.0)
memory_profiler (1.0.2)
memory_profiler (1.1.0)
mime-types (3.5.2)
mime-types-data (~> 3.2015)
mime-types-data (3.2024.0820)
Expand Down Expand Up @@ -610,7 +609,7 @@ GEM
psych (5.1.2)
stringio
public_suffix (6.0.1)
puma (6.4.2)
puma (6.4.3)
nio4r (~> 2.0)
pundit (2.4.0)
activesupport (>= 3.0.0)
Expand Down Expand Up @@ -937,7 +936,6 @@ DEPENDENCIES
discard (~> 1.2)
doorkeeper (~> 5.6)
dotenv
ed25519 (~> 1.3)
email_spec
fabrication (~> 2.30)
faker (~> 3.2)
Expand Down
18 changes: 0 additions & 18 deletions app/controllers/activitypub/claims_controller.rb

This file was deleted.

6 changes: 2 additions & 4 deletions app/controllers/activitypub/collections_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,14 @@ def set_items
@items = @items.map { |item| item.distributable? ? item : ActivityPub::TagManager.instance.uri_for(item) }
when 'tags'
@items = for_signed_account { @account.featured_tags }
when 'devices'
@items = @account.devices
else
not_found
end
end

def set_size
case params[:id]
when 'featured', 'devices', 'tags'
when 'featured', 'tags'
@size = @items.size
else
not_found
Expand All @@ -42,7 +40,7 @@ def set_type
case params[:id]
when 'featured'
@type = :ordered
when 'devices', 'tags'
when 'tags'
@type = :unordered
else
not_found
Expand Down
10 changes: 1 addition & 9 deletions app/controllers/api/oembed_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Api::OEmbedController < Api::BaseController
before_action :require_public_status!

def show
render json: @status, serializer: OEmbedSerializer, width: maxwidth_or_default, height: maxheight_or_default
render json: @status, serializer: OEmbedSerializer, width: params[:maxwidth], height: params[:maxheight]
end

private
Expand All @@ -23,12 +23,4 @@ def require_public_status!
def status_finder
StatusFinder.new(params[:url])
end

def maxwidth_or_default
(params[:maxwidth].presence || 400).to_i
end

def maxheight_or_default
params[:maxheight].present? ? params[:maxheight].to_i : nil
end
end
30 changes: 0 additions & 30 deletions app/controllers/api/v1/crypto/deliveries_controller.rb

This file was deleted.

47 changes: 0 additions & 47 deletions app/controllers/api/v1/crypto/encrypted_messages_controller.rb

This file was deleted.

25 changes: 0 additions & 25 deletions app/controllers/api/v1/crypto/keys/claims_controller.rb

This file was deleted.

17 changes: 0 additions & 17 deletions app/controllers/api/v1/crypto/keys/counts_controller.rb

This file was deleted.

26 changes: 0 additions & 26 deletions app/controllers/api/v1/crypto/keys/queries_controller.rb

This file was deleted.

29 changes: 0 additions & 29 deletions app/controllers/api/v1/crypto/keys/uploads_controller.rb

This file was deleted.

6 changes: 4 additions & 2 deletions app/controllers/api/v1/peers/search_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ class Api::V1::Peers::SearchController < Api::BaseController
skip_before_action :require_authenticated_user!, unless: :limited_federation_mode?
skip_around_action :set_locale

LIMIT = 10

vary_by ''

def index
Expand Down Expand Up @@ -35,10 +37,10 @@ def set_domains
field: 'accounts_count',
modifier: 'log2p',
},
}).limit(10).pluck(:domain)
}).limit(LIMIT).pluck(:domain)
else
domain = normalized_domain
@domains = Instance.searchable.domain_starts_with(domain).limit(10).pluck(:domain)
@domains = Instance.searchable.domain_starts_with(domain).limit(LIMIT).pluck(:domain)
end
rescue Addressable::URI::InvalidURIError
@domains = []
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/api/web/embeds_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def show
return not_found if @status.hidden?

if @status.local?
render json: @status, serializer: OEmbedSerializer, width: 400
render json: @status, serializer: OEmbedSerializer
else
return not_found unless user_signed_in?

Expand Down
10 changes: 5 additions & 5 deletions app/controllers/auth/sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ class Auth::SessionsController < Devise::SessionsController
p.form_action(false)
end

def check_suspicious!
user = find_user
@login_is_suspicious = suspicious_sign_in?(user) unless user.nil?
end

def create
super do |resource|
# We only need to call this if this hasn't already been
Expand Down Expand Up @@ -101,6 +96,11 @@ def require_no_authentication

private

def check_suspicious!
user = find_user
@login_is_suspicious = suspicious_sign_in?(user) unless user.nil?
end

def home_paths(resource)
paths = [about_path, '/explore']

Expand Down
Loading
Loading