diff --git a/Changelog.md b/Changelog.md index 0102c0fce..00ec4458e 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,6 +1,7 @@ # Head ## Refactor +* Drop number of followers from tags page [#4717](https://github.com/diaspora/diaspora/issues/4717) ## Bug fixes * Improve time agos by updating the plugin [#4280](https://github.com/diaspora/diaspora/issues/4280) diff --git a/app/models/acts_as_taggable_on/tag.rb b/app/models/acts_as_taggable_on/tag.rb index 4e652ee4d..052fca4b4 100644 --- a/app/models/acts_as_taggable_on/tag.rb +++ b/app/models/acts_as_taggable_on/tag.rb @@ -2,10 +2,6 @@ class ActsAsTaggableOn::Tag self.include_root_in_json = false - def followed_count - @followed_count ||= TagFollowing.where(:tag_id => self.id).count - end - def self.tag_text_regexp @@tag_text_regexp ||= "[[:alnum:]]_-" end diff --git a/app/views/tags/show.haml b/app/views/tags/show.haml index 1a52a6ce7..25133638e 100644 --- a/app/views/tags/show.haml +++ b/app/views/tags/show.haml @@ -29,8 +29,6 @@ #author_info %h2 = @stream.display_tag_name - %small - = t('.followed_by_people', count: @stream.tag_follow_count) - if current_user = render 'shared/publisher', :selected_aspects => @stream.aspect_ids, :aspect_ids => @stream.aspect_ids, :for_all_aspects => true, :aspect => @stream.aspect diff --git a/lib/stream/tag.rb b/lib/stream/tag.rb index bd4ceabb6..9817a24a8 100644 --- a/lib/stream/tag.rb +++ b/lib/stream/tag.rb @@ -16,10 +16,6 @@ class Stream::Tag < Stream::Base @tag ||= ActsAsTaggableOn::Tag.named(tag_name).first end - def tag_follow_count - @tag_follow_count ||= tag.try(:followed_count).to_i - end - def display_tag_name @display_tag_name ||= "##{tag_name}" end