mirror of https://github.com/tootsuite/mastodon
Re-introduce `application_id` in `ScheduledStatusSerializer`
parent
ee1cbda226
commit
3afc6554e9
|
@ -8,8 +8,4 @@ class REST::ScheduledStatusSerializer < ActiveModel::Serializer
|
|||
def id
|
||||
object.id.to_s
|
||||
end
|
||||
|
||||
def params
|
||||
object.params.without('application_id')
|
||||
end
|
||||
end
|
||||
|
|
|
@ -16,8 +16,7 @@ RSpec.describe REST::ScheduledStatusSerializer do
|
|||
it 'returns expected values and removes application_id from params' do
|
||||
expect(subject.deep_symbolize_keys)
|
||||
.to include(
|
||||
scheduled_at: be_a(String).and(match_api_datetime_format),
|
||||
params: not_include(:application_id)
|
||||
scheduled_at: be_a(String).and(match_api_datetime_format)
|
||||
)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue