mastodon/app/controllers/tags_controller.rb

12 lines
312 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2016-11-05 15:20:05 +01:00
class TagsController < ApplicationController
layout 'public'
2016-11-05 15:20:05 +01:00
def show
2016-12-04 16:56:45 +01:00
@tag = Tag.find_by!(name: params[:id].downcase)
@statuses = @tag.statuses.order('id desc').paginate_by_max_id(20, params[:max_id])
@statuses = cache_collection(@statuses, Status)
2016-11-05 15:20:05 +01:00
end
end