1
0
mirror of https://github.com/mastodon/documentation synced 2025-04-11 22:56:17 +02:00
trwnh 7ceae9fe36 Update anchors, line breaks, tootctl options (#745)
* update anchors

* remove extraneous anchors

* fix line breaks

* wrap tootctl tokens in code blocks

* change anchors to hugo format

* fix mistaken search-and-replace

* fix mistaken search-and-replace
2020-01-12 14:11:56 +01:00

1.5 KiB

title description menu
Marker Represents the last read position within a user's timelines.
docs
parent
entities

Example

{
  "home": {
    "last_read_id": "103194548672408537",
    "version": 462,
    "updated_at": "2019-11-24T19:39:39.337Z"
  },
  "notifications": {
    "last_read_id": "35050107",
    "version": 356,
    "updated_at": "2019-11-25T13:47:31.333Z"
  }
}

Base attributes

home

Description: Information about the user's position in the home timeline.
Type: Hash
Version history: Added in 3.0.0

notifications

Description: Information about the user's position in their notifications.
Type: Hash
Version history: Added in 3.0.0

Nested attributes

last_read_id

Description: The ID of the most recently viewed entity.
Type: String (cast from integer but not guaranteed to be a number)
Version history: Added in 3.0.0

updated_at

Description: The timestamp of when the marker was set.
Type: String (ISO 8601 Datetime)
Version history: Added in 3.0.0

version

Description: Used for locking to prevent write conflicts.
Type: Number
Version history: Added in 3.0.0

See also

{{< page-ref page="methods/timelines/markers.md" >}}

{{< caption-link url="https://github.com/tootsuite/mastodon/blob/master/app/serializers/rest/marker_serializer.rb" caption="app/serializers/rest/marker_serializer.rb" >}}