Revert "Revert "Add handler for Move activity (#9629)""

This reverts commit bb96a74637.
This commit is contained in:
Thibaut Girka
2019-01-10 18:46:17 +01:00
parent d1da0a1086
commit fb0c906c71
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
@@ -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