0
0
Fork 0

Add joined date to profiles in web UI (#16169)

This commit is contained in:
Eugen Rochko 2021-05-07 14:33:19 +02:00 committed by GitHub
parent b42a8ef7d9
commit 2c77d97e0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 34 additions and 8 deletions

View file

@ -55,6 +55,10 @@ class REST::AccountSerializer < ActiveModel::Serializer
full_asset_url(object.suspended? ? object.header.default_url : object.header_static_url)
end
def created_at
object.created_at.midnight.iso8601
end
def last_status_at
object.last_status_at&.to_date&.iso8601
end