Skip to main content

Displaying posts

Displaying the paginated list of posts

A post is identified as the kind 1 event or a kind 6 event (which is a reference/repost of an actual kind 1 post)

note

kind 1 and kind 6 events require extra processing before displaying

  • Repost Header (only if it was built from a kind 6)
    • Display Name
      • content.display_name of the kind 0 event associated with the initial kind 6 one
  • Author Header
    • Display Name
      • content.display_name of the kind 0 event
    • Affiliations
    • Verified Badge
    • Username
      • content.name of the kind 0 event
    • Profile Picture
      • content.picture(this is the actual URL) of the kind 0 event
    • Post Creating time
      • created_at of the kind 1 event
  • Text
    • The content field of a kind 1 message represents the text of the post.
      note

      If the text contains media (images, videos, and other files) then those are defined individually in imeta tags.

      note

      If the text contains hyperlinks/references to any other internal or external resources then those are defined in a standardized convention.

      note

      If the text contains hashtags then those are identified by the t tag.

  • Repost/Quote information
    • The post that is quoted is identified by the q tag in the kind 1 event
    • The post that is reposted is identified by the e tag of the kind 6 event
  • Reply/Comment Count
  • Quote and Repost Count
  • Reaction Count
  • Tips amount (in $Ice)