diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-05-06 01:29:33 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-05-21 03:16:22 -0500 |
commit | a1be3a11a97fc4119da4f0f951e2e9447bb7a647 (patch) | |
tree | bc9eaaf99c7187eedfde3a202ea5f9b44c8102dd /app/services | |
parent | 2f23d34e3694ffded0c5ee43f59d7cdf3bfbebfc (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.rb | 4 |
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 |