This repository has been archived on 2024-07-31. You can view files and clone it, but cannot push or open issues or pull requests.
2016-11-15 10:56:29 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-11-05 10:20:05 -04:00
|
|
|
class TagsController < ApplicationController
|
2016-11-05 12:44:14 -04:00
|
|
|
layout 'public'
|
|
|
|
|
2016-11-05 10:20:05 -04:00
|
|
|
def show
|
2017-04-19 21:54:02 -04:00
|
|
|
@tag = Tag.find_by(name: params[:id].downcase)
|
|
|
|
@statuses = @tag.nil? ? [] : Status.as_tag_timeline(@tag, current_account, params[:local]).paginate_by_max_id(20, params[:max_id])
|
2016-12-04 10:56:45 -05:00
|
|
|
@statuses = cache_collection(@statuses, Status)
|
2016-11-05 10:20:05 -04:00
|
|
|
end
|
|
|
|
end
|