about summary refs log tree commit diff
path: root/app/models/account.rb
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-01-10 18:46:17 +0100
committerThibaut Girka <thib@sitedethib.com>2019-01-10 18:46:17 +0100
commitfb0c906c717f2b21bb63610742a357850142b522 (patch)
tree696e649bcf15c2a7926e2d6d5f9e08f90aaef058 /app/models/account.rb
parentd1da0a1086fa25f22739277fbf32ba1b3745317d (diff)
Revert "Revert "Add handler for Move activity (#9629)""
This reverts commit bb96a7463758687f8187ae4483becd346c2482b3.
Diffstat (limited to 'app/models/account.rb')
-rw-r--r--app/models/account.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/account.rb b/app/models/account.rb
index 722e47d65..67d9a583e 100644
--- a/app/models/account.rb
+++ b/app/models/account.rb
@@ -44,6 +44,7 @@
 #  fields                  :jsonb
 #  actor_type              :string
 #  discoverable            :boolean
+#  also_known_as           :string           is an Array
 #
 
 class Account < ApplicationRecord
@@ -232,6 +233,10 @@ class Account < ApplicationRecord
     end
   end
 
+  def also_known_as
+    self[:also_known_as] || []
+  end
+
   def fields
     (self[:fields] || []).map { |f| Field.new(self, f) }
   end