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