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