mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-24 00:54:02 -05:00
Add backend support to read and update list-specific show_replies settings
This commit is contained in:
parent
53d0293d25
commit
06c7fb8015
@ -38,6 +38,6 @@ class Api::V1::ListsController < Api::BaseController
|
||||
end
|
||||
|
||||
def list_params
|
||||
params.permit(:title)
|
||||
params.permit(:title, :replies_policy)
|
||||
end
|
||||
end
|
||||
|
@ -1,7 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class REST::ListSerializer < ActiveModel::Serializer
|
||||
attributes :id, :title
|
||||
attributes :id, :title, :replies_policy
|
||||
|
||||
def id
|
||||
object.id.to_s
|
||||
|
Loading…
Reference in New Issue
Block a user