This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Add backend support to read and update list-specific show_replies settings
closed-social-glitch-2
Thibaut Girka
6 years ago
committed by
ThibG
parent
53d0293d25
commit
06c7fb8015
2 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/controllers/api/v1/lists_controller.rb
+1
-1
app/serializers/rest/list_serializer.rb
+ 1
- 1
app/controllers/api/v1/lists_controller.rb
View File
@ -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
- 1
app/serializers/rest/list_serializer.rb
View File
@ -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
Write
Preview
Loading…
Cancel
Save