about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-12-06 17:36:11 +0100
committerReverite <github@reverite.sh>2018-12-06 15:59:26 -0800
commitee5213093a084c2eb5fa97fb4bdea6019dda5cf5 (patch)
treefedcca21d531082c671750f2d86c43e2895f91ef /app/services
parenta78e3f2206ddaeeb3e6f1c23e4b524af29e92b04 (diff)
Add profile directory (#9427)
Fix #5578
Diffstat (limited to 'app/services')
-rw-r--r--app/services/update_account_service.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/services/update_account_service.rb b/app/services/update_account_service.rb
index ec69d944a..36665177d 100644
--- a/app/services/update_account_service.rb
+++ b/app/services/update_account_service.rb
@@ -10,6 +10,7 @@ class UpdateAccountService < BaseService
 
       authorize_all_follow_requests(account) if was_locked && !account.locked
       check_links(account)
+      process_hashtags(account)
     end
   end
 
@@ -24,4 +25,8 @@ class UpdateAccountService < BaseService
   def check_links(account)
     VerifyAccountLinksWorker.perform_async(account.id)
   end
+
+  def process_hashtags(account)
+    account.tags_as_strings = Extractor.extract_hashtags(account.note)
+  end
 end