about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-12-29 02:24:36 +0100
committerGitHub <noreply@github.com>2018-12-29 02:24:36 +0100
commit0f938ff29c2e9bf92e3eb9c23be8d4ba3a1b97f7 (patch)
treea7f9cb2672014b95f77f1a9fe802009f889574e0 /app/models
parent9b475a4838abc6143e26776816280e16abfc6193 (diff)
Add handler for Move activity (#9629)
Diffstat (limited to 'app/models')
-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 66f02b27d..f354bc29b 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
@@ -227,6 +228,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