0
0
Fork 0

Add handler for Move activity (#9629)

This commit is contained in:
Eugen Rochko 2018-12-29 02:24:36 +01:00 committed by GitHub
parent 9b475a4838
commit 0f938ff29c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 136 additions and 3 deletions

View file

@ -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