mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-15 00:38:27 +00:00
Simplify render in controllers (#2144)
This commit is contained in:
@@ -17,7 +17,7 @@ class Api::V1::TimelinesController < ApiController
|
||||
|
||||
set_pagination_headers(next_path, prev_path)
|
||||
|
||||
render action: :index
|
||||
render :index
|
||||
end
|
||||
|
||||
def public
|
||||
@@ -31,7 +31,7 @@ class Api::V1::TimelinesController < ApiController
|
||||
|
||||
set_pagination_headers(next_path, prev_path)
|
||||
|
||||
render action: :index
|
||||
render :index
|
||||
end
|
||||
|
||||
def tag
|
||||
@@ -46,7 +46,7 @@ class Api::V1::TimelinesController < ApiController
|
||||
|
||||
set_pagination_headers(next_path, prev_path)
|
||||
|
||||
render action: :index
|
||||
render :index
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user