about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-05-06 01:29:33 -0500
committermultiple creatures <dev@multiple-creature.party>2019-05-21 03:16:22 -0500
commita1be3a11a97fc4119da4f0f951e2e9447bb7a647 (patch)
treebc9eaaf99c7187eedfde3a202ea5f9b44c8102dd /app/services
parent2f23d34e3694ffded0c5ee43f59d7cdf3bfbebfc (diff)
Don't try to add tags that already exist in the status.
Diffstat (limited to 'app/services')
-rw-r--r--app/services/process_hashtags_service.rb4
1 files changed, 1 insertions, 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