mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-22 07:08:07 +01:00
Rename Mastodon::RejectPayload to Mastodon::RejectPayloadError to match naming scheme for ValidationErrors
This commit is contained in:
parent
655d28f6a7
commit
566205ab1c
2 changed files with 3 additions and 3 deletions
|
@ -14,7 +14,7 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
|
||||||
else
|
else
|
||||||
create_status
|
create_status
|
||||||
end
|
end
|
||||||
rescue Mastodon::RejectPayload
|
rescue Mastodon::RejectPayloadError
|
||||||
reject_payload!
|
reject_payload!
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
|
||||||
|
|
||||||
process_status_params
|
process_status_params
|
||||||
|
|
||||||
raise Mastodon::RejectPayload if MediaAttachment.where(id: @params[:media_attachment_ids]).where(blurhash: Setting.reject_blurhash.split(/\r?\n/).filter(&:present?).uniq).present?
|
raise Mastodon::RejectPayloadError if MediaAttachment.where(id: @params[:media_attachment_ids]).where(blurhash: Setting.reject_blurhash.split(/\r?\n/).filter(&:present?).uniq).present?
|
||||||
|
|
||||||
process_tags
|
process_tags
|
||||||
process_audience
|
process_audience
|
||||||
|
|
|
@ -8,7 +8,7 @@ module Mastodon
|
||||||
class LengthValidationError < ValidationError; end
|
class LengthValidationError < ValidationError; end
|
||||||
class DimensionsValidationError < ValidationError; end
|
class DimensionsValidationError < ValidationError; end
|
||||||
class StreamValidationError < ValidationError; end
|
class StreamValidationError < ValidationError; end
|
||||||
class RejectPayload < ValidationError; end
|
class RejectPayloadError < ValidationError; end
|
||||||
class FilterValidationError < ValidationError; end
|
class FilterValidationError < ValidationError; end
|
||||||
class RaceConditionError < Error; end
|
class RaceConditionError < Error; end
|
||||||
class RateLimitExceededError < Error; end
|
class RateLimitExceededError < Error; end
|
||||||
|
|
Loading…
Reference in a new issue