From a1be3a11a97fc4119da4f0f951e2e9447bb7a647 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Mon, 6 May 2019 01:29:33 -0500 Subject: [PATCH] Don't try to add tags that already exist in the status. --- app/services/process_hashtags_service.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/services/process_hashtags_service.rb b/app/services/process_hashtags_service.rb index 7f51d1fb8..351248c69 100644 --- a/app/services/process_hashtags_service.rb +++ b/app/services/process_hashtags_service.rb @@ -13,10 +13,8 @@ class ProcessHashtagsService < BaseService frag = (nest != 5) ? name[0..i] : name tag = Tag.where(name: frag).first_or_create(name: frag) - p frag - + next if status.tags.include?(tag) status.tags << tag - next if tag.local || tag.private records << tag