Don't try to add tags that already exist in the status.

staging
multiple creatures 2019-05-06 01:29:33 -05:00
parent 2f23d34e36
commit a1be3a11a9
1 changed files with 1 additions and 3 deletions

View File

@ -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