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
Fix missing irreversible in filters API, expires_in param (
#7976
)
pull/4/head
Eugen Rochko
5 years ago
committed by
GitHub
parent
c24d62220d
commit
9804ec3a6d
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
2 changed files
with
3 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/controllers/api/v1/filters_controller.rb
+2
-1
app/serializers/rest/filter_serializer.rb
+ 1
- 1
app/controllers/api/v1/filters_controller.rb
View File
@ -43,6 +43,6 @@ class Api::V1::FiltersController < Api::BaseController
end
def
resource_params
params
.
permit
(
:phrase
,
:expires_
at
,
:irreversible
,
context
:
[
]
)
params
.
permit
(
:phrase
,
:expires_
in
,
:irreversible
,
context
:
[
]
)
end
end
+ 2
- 1
app/serializers/rest/filter_serializer.rb
View File
@ -1,5 +1,6 @@
# frozen_string_literal: true
class
REST
::
FilterSerializer
<
ActiveModel
::
Serializer
attributes
:id
,
:phrase
,
:context
,
:expires_at
attributes
:id
,
:phrase
,
:context
,
:expires_at
,
:irreversible
end
Write
Preview
Loading…
Cancel
Save