Add handler for Move activity (#9629)
This commit is contained in:
parent
9b475a4838
commit
0f938ff29c
12 changed files with 136 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue