Merge commit '1b68020331783c365cd5baa696945d0d8bc68f72' into glitch-soc/merge-upstream
This commit is contained in:
commit
7cc3d85a72
@ -17,7 +17,7 @@ class Admin::SystemCheck::ElasticsearchCheck < Admin::SystemCheck::BaseCheck
|
|||||||
return true unless Chewy.enabled?
|
return true unless Chewy.enabled?
|
||||||
|
|
||||||
running_version.present? && compatible_version? && cluster_health['status'] == 'green' && indexes_match? && specifications_match? && preset_matches?
|
running_version.present? && compatible_version? && cluster_health['status'] == 'green' && indexes_match? && specifications_match? && preset_matches?
|
||||||
rescue Faraday::ConnectionFailed, Elasticsearch::Transport::Transport::Error
|
rescue Faraday::ConnectionFailed, Elasticsearch::Transport::Transport::Error, HTTPClient::KeepAliveDisconnected
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -54,7 +54,7 @@ class Admin::SystemCheck::ElasticsearchCheck < Admin::SystemCheck::BaseCheck
|
|||||||
else
|
else
|
||||||
Admin::SystemCheck::Message.new(:elasticsearch_preset, nil, 'https://docs.joinmastodon.org/admin/elasticsearch/#scaling')
|
Admin::SystemCheck::Message.new(:elasticsearch_preset, nil, 'https://docs.joinmastodon.org/admin/elasticsearch/#scaling')
|
||||||
end
|
end
|
||||||
rescue Faraday::ConnectionFailed, Elasticsearch::Transport::Transport::Error
|
rescue Faraday::ConnectionFailed, Elasticsearch::Transport::Transport::Error, HTTPClient::KeepAliveDisconnected
|
||||||
Admin::SystemCheck::Message.new(:elasticsearch_running_check)
|
Admin::SystemCheck::Message.new(:elasticsearch_running_check)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -78,7 +78,7 @@ class ActivityPub::FetchAllRepliesWorker
|
|||||||
# @param root_status_uri [String]
|
# @param root_status_uri [String]
|
||||||
def get_root_replies(root_status_uri, options = {})
|
def get_root_replies(root_status_uri, options = {})
|
||||||
root_status_body = fetch_resource(root_status_uri, true)
|
root_status_body = fetch_resource(root_status_uri, true)
|
||||||
raise RuntimeError("FetchAllRepliesWorker - #{@root_status.uri}: Root status could not be fetched") if root_status_body.nil?
|
return if root_status_body.nil?
|
||||||
|
|
||||||
FetchReplyWorker.perform_async(root_status_uri, { **options, prefetched_body: root_status_body })
|
FetchReplyWorker.perform_async(root_status_uri, { **options, prefetched_body: root_status_body })
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user