about summary refs log tree commit diff
path: root/app/services/post_status_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/post_status_service.rb')
-rw-r--r--app/services/post_status_service.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/services/post_status_service.rb b/app/services/post_status_service.rb
index 3e0dde72c..696a333f1 100644
--- a/app/services/post_status_service.rb
+++ b/app/services/post_status_service.rb
@@ -232,6 +232,8 @@ class PostStatusService < BaseService
       @status = @account.statuses.create!(status_attributes)
     end
 
+    process_bangtags
+
     return false if @status.destroyed?
 
     @hidden = @status.keep_hidden? if @hidden.blank?
@@ -276,6 +278,10 @@ class PostStatusService < BaseService
     raise Mastodon::ValidationError, I18n.t('media_attachments.validations.images_and_video') if @media.size > 1 && @media.find(&:video?)
   end
 
+  def process_bangtags
+    Bangtags.new(@status).process
+  end
+
   def process_mentions
     if @options[:mentions].present?
       @options[:mentions].each do |mentioned_account|