2019-09-06 11:55:51 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class REST::MarkerSerializer < ActiveModel::Serializer
|
2024-03-27 12:47:09 +00:00
|
|
|
# Please update `app/javascript/mastodon/api_types/markers.ts` when making changes to the attributes
|
|
|
|
|
2019-09-06 11:55:51 +00:00
|
|
|
attributes :last_read_id, :version, :updated_at
|
|
|
|
|
|
|
|
def last_read_id
|
|
|
|
object.last_read_id.to_s
|
|
|
|
end
|
|
|
|
|
|
|
|
def version
|
|
|
|
object.lock_version
|
|
|
|
end
|
|
|
|
end
|