Merge commit '0529a1f7d2197dd535f59163c00634f9c060723d' into glitch-soc/merge-upstream
This commit is contained in:
commit
003ad015f8
12
CHANGELOG.md
12
CHANGELOG.md
@ -2,6 +2,18 @@
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
## [4.5.11] - 2026-06-03
|
||||
|
||||
### Security
|
||||
|
||||
- Fix allowed attribution domains spoofing ([GHSA-rwcw-vq68-g34p](https://github.com/mastodon/mastodon/security/advisories/GHSA-rwcw-vq68-g34p))
|
||||
- Fix uncaught exception in message sanitization causing Denial of Service ([GHSA-qrgq-9fx2-vf2r](https://github.com/mastodon/mastodon/security/advisories/GHSA-qrgq-9fx2-vf2r))
|
||||
- Update dependencies
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fix remote statuses with large media descriptions being rejected (#39135 by @ClearlyClaire)
|
||||
|
||||
## [4.5.10] - 2026-05-20
|
||||
|
||||
### Security
|
||||
|
||||
@ -150,7 +150,7 @@ class ActivityPub::ProcessAccountService < BaseService
|
||||
@account.show_featured = @json['showFeatured'] if @json.key?('showFeatured')
|
||||
@account.show_media = @json['showMedia'] if @json.key?('showMedia')
|
||||
@account.show_media_replies = @json['showRepliesInMedia'] if @json.key?('showRepliesInMedia')
|
||||
@account.attribution_domains = as_array(@json['attributionDomains'] || []).take(Account::ATTRIBUTION_DOMAINS_HARD_LIMIT).filter { |item| item.is_a?(String) }
|
||||
@account.attribution_domains = as_array(@json['attributionDomains'] || []).take(Account::ATTRIBUTION_DOMAINS_HARD_LIMIT).grep(String)
|
||||
end
|
||||
|
||||
def set_fetchable_key!
|
||||
|
||||
@ -59,7 +59,7 @@ services:
|
||||
web:
|
||||
# You can uncomment the following line if you want to not use the prebuilt image, for example if you have local code changes
|
||||
# build: .
|
||||
image: ghcr.io/glitch-soc/mastodon:v4.5.10
|
||||
image: ghcr.io/glitch-soc/mastodon:v4.5.11
|
||||
restart: always
|
||||
env_file: .env.production
|
||||
command: bundle exec puma -C config/puma.rb
|
||||
@ -83,7 +83,7 @@ services:
|
||||
# build:
|
||||
# dockerfile: ./streaming/Dockerfile
|
||||
# context: .
|
||||
image: ghcr.io/glitch-soc/mastodon-streaming:v4.5.10
|
||||
image: ghcr.io/glitch-soc/mastodon-streaming:v4.5.11
|
||||
restart: always
|
||||
env_file: .env.production
|
||||
command: node ./streaming/index.js
|
||||
@ -102,7 +102,7 @@ services:
|
||||
sidekiq:
|
||||
# You can uncomment the following line if you want to not use the prebuilt image, for example if you have local code changes
|
||||
# build: .
|
||||
image: ghcr.io/glitch-soc/mastodon:v4.5.10
|
||||
image: ghcr.io/glitch-soc/mastodon:v4.5.11
|
||||
restart: always
|
||||
env_file: .env.production
|
||||
command: bundle exec sidekiq
|
||||
|
||||
@ -17,7 +17,7 @@ module Mastodon
|
||||
end
|
||||
|
||||
def default_prerelease
|
||||
'alpha.8'
|
||||
'alpha.9'
|
||||
end
|
||||
|
||||
def prerelease
|
||||
|
||||
@ -93,6 +93,7 @@ class Sanitize
|
||||
# next, we find the plain-text description
|
||||
is_annotation_with_encoding = lambda do |encoding, node|
|
||||
return false unless node.name == 'annotation'
|
||||
|
||||
encoding_attr = node.attributes['encoding']
|
||||
return false if encoding_attr.nil?
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user