Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix wrong param name in scheduled statuses and return params in API
The database column and API param are called in_reply_to_id, not in_reply_to_status_id, so it makes no sense to encode it that way
- Loading branch information
Showing
3 changed files
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
# frozen_string_literal: true | ||
|
||
class REST::ScheduledStatusSerializer < ActiveModel::Serializer | ||
attributes :id, :scheduled_at | ||
attributes :id, :scheduled_at, :params | ||
|
||
has_many :media_attachments, serializer: REST::MediaAttachmentSerializer | ||
|
||
def id | ||
object.id.to_s | ||
end | ||
|
||
def params | ||
object.params.without(:application_id) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters