Remove deprecated GET /api/v1/search
API (#11823)
Use `GET /api/v2/search` instead
This commit is contained in:
parent
cf2b708e6b
commit
18331fefa2
6 changed files with 27 additions and 71 deletions
|
@ -1,12 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class REST::SearchSerializer < ActiveModel::Serializer
|
||||
attributes :hashtags
|
||||
|
||||
has_many :accounts, serializer: REST::AccountSerializer
|
||||
has_many :statuses, serializer: REST::StatusSerializer
|
||||
|
||||
def hashtags
|
||||
object.hashtags.map(&:name)
|
||||
end
|
||||
has_many :hashtags, serializer: REST::TagSerializer
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue