diff --git a/app/models/account.rb b/app/models/account.rb
index 66345b5ab805c19c4e3632677513114125dcad68..2cbec488bd003f263424055070dcf004ac1d42f3 100644
--- a/app/models/account.rb
+++ b/app/models/account.rb
@@ -14,6 +14,8 @@ class Account < ActiveRecord::Base
   has_many :following, through: :active_relationships,  source: :target_account
   has_many :followers, through: :passive_relationships, source: :account
 
+  MENTION_RE = /(?:^|\W)@([a-z0-9_]+(?:@[a-z0-9\.\-]+)?)/i
+
   def follow!(other_account)
     self.active_relationships.first_or_create!(target_account: other_account)
   end
diff --git a/app/models/status.rb b/app/models/status.rb
index be616dce6b0d353ed73f3e96b905d1b4101c76dc..80719140e39edb1d473d9c52ce6aab9cadc84d63 100644
--- a/app/models/status.rb
+++ b/app/models/status.rb
@@ -51,6 +51,17 @@ class Status < ActiveRecord::Base
     m << thread.account if reply?
     m << reblog.account if reblog?
 
+    unless reblog?
+      self.text.scan(Account::MENTION_RE).each do |match|
+        uri      = match.first
+        username = uri.split('@').first
+        domain   = uri.split('@').size == 2 ? uri.split('@').last : nil
+        account  = Account.find_by(username: username, domain: domain)
+
+        m << account unless account.nil?
+      end
+    end
+
     m
   end
 
diff --git a/app/services/post_status_service.rb b/app/services/post_status_service.rb
new file mode 100644
index 0000000000000000000000000000000000000000..e8fc6cdefc49d4bc004f838d2ae5aa4c528ba8e7
--- /dev/null
+++ b/app/services/post_status_service.rb
@@ -0,0 +1,19 @@
+class PostStatusService < BaseService
+  def call(account, text, in_reply_to = nil)
+    status = account.statuses.create!(text: text, thread: in_reply_to)
+
+    status.text.scan(Account::MENTION_RE).each do |match|
+      next if match.first.split('@').size == 1
+      username, domain = match.first.split('@')
+      local_account = Account.find_by(username: username, domain: domain)
+      next unless local_account.nil?
+      follow_remote_account_service.("acct:#{match.first}")
+    end
+  end
+
+  private
+
+  def follow_remote_account_service
+    @follow_remote_account_service ||= FollowRemoteAccountService.new
+  end
+end