2019-09-06 21:55:51 +10:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class REST::MarkerSerializer < ActiveModel::Serializer
|
2024-03-27 23:47:09 +11:00
|
|
|
# Please update `app/javascript/mastodon/api_types/markers.ts` when making changes to the attributes
|
|
|
|
|
2019-09-06 21:55:51 +10: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
|