2016-11-15 09:56:29 -06:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-11-05 09:20:05 -05:00
|
|
|
class TagsController < ApplicationController
|
2016-11-05 11:44:14 -05:00
|
|
|
layout 'public'
|
|
|
|
|
2016-11-05 09:20:05 -05:00
|
|
|
def show
|
2017-04-28 08:11:21 -05:00
|
|
|
@tag = Tag.find_by!(name: params[:id].downcase)
|
2017-04-19 20:54:02 -05:00
|
|
|
@statuses = @tag.nil? ? [] : Status.as_tag_timeline(@tag, current_account, params[:local]).paginate_by_max_id(20, params[:max_id])
|
2016-12-04 09:56:45 -06:00
|
|
|
@statuses = cache_collection(@statuses, Status)
|
2016-11-05 09:20:05 -05:00
|
|
|
end
|
|
|
|
end
|