mirror of https://github.com/mastodon/mastodon
Fix linking of remote hashtags in UI, add public view of hashtags
parent
48b9619439
commit
a698b767c1
@ -1,4 +1,7 @@
|
|||||||
class TagsController < ApplicationController
|
class TagsController < ApplicationController
|
||||||
|
layout 'public'
|
||||||
|
|
||||||
def show
|
def show
|
||||||
|
@statuses = Tag.find_by!(name: params[:id].downcase).statuses.order('id desc').with_includes.with_counters.paginate(page: params[:page], per_page: 10)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -0,0 +1,8 @@
|
|||||||
|
- if @statuses.empty?
|
||||||
|
.accounts-grid
|
||||||
|
= render partial: 'accounts/nothing_here'
|
||||||
|
- else
|
||||||
|
.activity-stream
|
||||||
|
= render partial: 'stream_entries/status', collection: @statuses, as: :status, cached: true
|
||||||
|
|
||||||
|
= will_paginate @statuses, pagination_options
|
Loading…
Reference in New Issue