Mastodon
  • 什么是 Mastodon?
  • 使用 Mastodon
    • 注册帐户
    • 设置你的个人资料
    • 在你的账户发布内容
    • 使用网络功能
    • 处理不想看到的内容
    • 推广你和他人
    • 进行偏好设置
    • 更多设置
    • 在站点外使用 Mastodon
    • 迁移或离开账户
    • 运行你自己的站点
  • 运营 Mastodon
    • 准备你的服务器
    • 从源代码安装
    • 配置你的环境
    • 安装可选功能
      • 对象存储
      • 洋葱服务
      • 验证码
      • 单点登录
    • 配置全文搜索
    • 设置你的新实例
    • 使用管理 CLI
    • 升级到新版本
    • 备份你的服务器
    • 迁移到新机器
    • 扩大你的站点规模
    • 审核操作
    • 故障排除
      • 数据库索引损坏
    • 用户组
  • 开发 Mastodon 应用
    • API 入门指南
    • 使用公开数据
    • 获取客户端应用访问权限
    • 使用帐户登录
    • 库与实现
  • 向 Mastodon 项目做贡献
    • 技术概览
    • 设置开发环境
    • 代码结构
    • 路由
    • 漏洞赏金与责任披露
  • 遵循的标准
    • ActivityPub
    • WebFinger
    • 安全性
    • Microformats
    • OAuth
    • Bearcaps
  • REST API
    • Datetime 格式
    • 指南与最佳实践
    • OAuth 令牌
    • OAuth 作用域
    • 速率限制
  • API 方法
    • apps
      • oauth
      • emails
    • accounts
      • bookmarks
      • favourites
      • mutes
      • blocks
      • domain_blocks
      • filters
      • reports
      • follow_requests
      • endorsements
      • featured_tags
      • preferences
      • followed_tags
      • suggestions
      • tags
    • profile
    • statuses
      • media
      • polls
      • scheduled_statuses
    • timelines
      • conversations
      • lists
      • markers
      • streaming
    • grouped notifications
    • notifications
      • push
    • search
    • instance
      • trends
      • directory
      • custom_emojis
      • announcements
    • admin
      • accounts
      • canonical_email_blocks
      • dimensions
      • domain_allows
      • domain_blocks
      • email_domain_blocks
      • ip_blocks
      • measures
      • reports
      • retention
      • trends
    • proofs
    • oembed
  • API 实体
    • Account
    • AccountWarning
    • Admin::Account
    • Admin::CanonicalEmailBlock
    • Admin::Cohort
    • Admin::Dimension
    • Admin::DomainAllow
    • Admin::DomainBlock
    • Admin::EmailDomainBlock
    • Admin::Ip
    • Admin::IpBlock
    • Admin::Measure
    • Admin::Report
    • Announcement
    • Appeal
    • Application
    • Context
    • Conversation
    • CustomEmoji
    • DomainBlock
    • Error
    • ExtendedDescription
    • FamiliarFollowers
    • FeaturedTag
    • Filter
    • FilterKeyword
    • FilterResult
    • FilterStatus
    • IdentityProof
    • Instance
    • List
    • Marker
    • MediaAttachment
    • Notification
    • NotificationPolicy
    • NotificationRequest
    • Poll
    • Preferences
    • PreviewCard
    • PreviewCardAuthor
    • PrivacyPolicy
    • Reaction
    • Relationship
    • RelationshipSeveranceEvent
    • Report
    • Role
    • Rule
    • ScheduledStatus
    • Search
    • Status
    • StatusEdit
    • StatusSource
    • Suggestion
    • Tag
    • TermsOfService
    • Token
    • Translation
    • V1::Filter
    • V1::Instance
    • V1::NotificationPolicy
    • WebPushSubscription

Status

表示帐户发布的嘟文。

    • 示例
    • 属性
      • id
      • uri
      • created_at
      • account
      • content
      • visibility
      • sensitive
      • spoiler_text
      • media_attachments
      • application 可选
      • mentions
      • tags
      • emojis
      • reblogs_count
      • favourites_count
      • replies_count
      • url
      • in_reply_to_id
      • in_reply_to_account_id
      • reblog
      • poll
      • card
      • language
      • text
      • edited_at
      • favourited 可选
      • reblogged 可选
      • muted 可选
      • bookmarked 可选
      • pinned 可选
      • filtered 可选
    • Status::Mention 属性
      • id
      • username
      • url
      • acct
    • Status::Tag 属性
      • name
      • url
    • 参见

示例

{
  "id": "103270115826048975",
  "created_at": "2019-12-08T03:48:33.901Z",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "language": "en",
  "uri": "https://mastodon.social/users/Gargron/statuses/103270115826048975",
  "url": "https://mastodon.social/@Gargron/103270115826048975",
  "replies_count": 5,
  "reblogs_count": 6,
  "favourites_count": 11,
  "favourited": false,
  "reblogged": false,
  "muted": false,
  "bookmarked": false,
  "content": "<p>&quot;I lost my inheritance with one wrong digit on my sort code&quot;</p><p><a href=\"https://www.theguardian.com/money/2019/dec/07/i-lost-my-193000-inheritance-with-one-wrong-digit-on-my-sort-code\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><span class=\"invisible\">https://www.</span><span class=\"ellipsis\">theguardian.com/money/2019/dec</span><span class=\"invisible\">/07/i-lost-my-193000-inheritance-with-one-wrong-digit-on-my-sort-code</span}</p>",
  "reblog": null,
  "application": {
    "name": "Web",
    "website": null
  },
  "account": {
    "id": "1",
    "username": "Gargron",
    "acct": "Gargron",
    "display_name": "Eugen",
    "locked": false,
    "bot": false,
    "discoverable": true,
    "group": false,
    "created_at": "2016-03-16T14:34:26.392Z",
    "note": "<p>Developer of Mastodon and administrator of mastodon.social. I post service announcements, development updates, and personal stuff.</p>",
    "url": "https://mastodon.social/@Gargron",
    "avatar": "https://files.mastodon.social/accounts/avatars/000/000/001/original/d96d39a0abb45b92.jpg",
    "avatar_static": "https://files.mastodon.social/accounts/avatars/000/000/001/original/d96d39a0abb45b92.jpg",
    "header": "https://files.mastodon.social/accounts/headers/000/000/001/original/c91b871f294ea63e.png",
    "header_static": "https://files.mastodon.social/accounts/headers/000/000/001/original/c91b871f294ea63e.png",
    "followers_count": 322930,
    "following_count": 459,
    "statuses_count": 61323,
    "last_status_at": "2019-12-10T08:14:44.811Z",
    "emojis": [],
    "fields": [
      {
        "name": "Patreon",
        "value": "<a href=\"https://www.patreon.com/mastodon\" rel=\"me nofollow noopener noreferrer\" target=\"_blank\"><span class=\"invisible\">https://www.</span><span class=\"\">patreon.com/mastodon</span><span class=\"invisible\"></span}",
        "verified_at": null
      },
      {
        "name": "Homepage",
        "value": "<a href=\"https://zeonfederated.com\" rel=\"me nofollow noopener noreferrer\" target=\"_blank\"><span class=\"invisible\">https://</span><span class=\"\">zeonfederated.com</span><span class=\"invisible\"></span}",
        "verified_at": "2019-07-15T18:29:57.191+00:00"
      }
    ]
  },
  "media_attachments": [],
  "mentions": [],
  "tags": [],
  "emojis": [],
  "card": {
    "url": "https://www.theguardian.com/money/2019/dec/07/i-lost-my-193000-inheritance-with-one-wrong-digit-on-my-sort-code",
    "title": "‘I lost my £193,000 inheritance – with one wrong digit on my sort code’",
    "description": "When Peter Teich’s money went to another Barclays customer, the bank offered £25 as a token gesture",
    "type": "link",
    "author_name": "",
    "author_url": "",
    "provider_name": "",
    "provider_url": "",
    "html": "",
    "width": 0,
    "height": 0,
    "image": null,
    "embed_url": ""
  },
  "poll": null
}

属性

id

描述: 数据库中嘟文的 ID。
类型: 字符串(从整数转换而来,但不保证是数字)
版本历史:
0.1.0 - 添加

uri

描述: 用于联合的嘟文 URI。
类型: 字符串
版本历史:
0.1.0 - 添加

created_at

描述: 此嘟文创建的日期。
类型: (Datetime) 字符串
版本历史:
0.1.0 - 添加

account

描述: 撰写此嘟文的帐户。
类型: Account
版本历史:
0.1.0 - 添加

content

描述: HTML 格式的嘟文内容。
类型: 字符串 (HTML)
版本历史:
0.1.0 - 添加

visibility

描述: 此嘟文的可见性。
类型: 字符串(可枚举的 oneOf 类型)
public = 公开可见,显示在公共时间线中。
unlisted = 公开可见,但不包含在公共时间线中。
private = 仅对关注者以及任何被提及的用户可见。
direct = 仅对被提及的用户可见。
版本历史:
0.9.9 - 添加

sensitive

描述: 此嘟文是否标记为敏感内容?
类型: 布尔值
版本历史:
0.9.9 - 添加

spoiler_text

描述: 主题或摘要,嘟文内容将被折叠在该文本之后,直到被展开为止。
类型: 字符串
版本历史:
1.0.0 - 添加

media_attachments

描述: 附加到此嘟文的媒体。
类型: MediaAttachment 数组
版本历史:
0.6.0 - 添加

application 可选

描述: 用于发布此嘟文的应用。
类型: 哈希
版本历史:
0.9.9 - 添加

application[name]

描述: 发布此嘟文的应用的名称。
类型: 字符串
版本历史:
0.9.9 - 添加

application[website]

描述: 与发布此嘟文的应用关联的网站。
类型: nullable 字符串 (URL) 或 null
版本历史:
0.9.9 - 添加
3.5.1 - this property is now nullable

mentions

描述: 在嘟文内容中提及的用户。
类型: Status::Mention 数组
版本历史:
0.6.0 - 添加

tags

描述: 在嘟文内容中使用的话题标签。
类型: Status::Tag 数组
版本历史:
0.6.0 - 添加

emojis

描述: 渲染嘟文内容时要使用的自定义表情。
类型: CustomEmoji 数组
版本历史:
2.0.0 - 添加

reblogs_count

描述: 此嘟文的被转发数。
类型: 整数
版本历史:
0.1.0 - 添加

favourites_count

描述: 此嘟文已收到的点赞数。
类型: 整数
版本历史:
0.1.0 - 添加

replies_count

描述: 此嘟文已收到的回复数。
类型: 整数
版本历史:
2.5.0 - 添加

url

描述: 指向嘟文的 HTML 表示的链接。
类型: nullable 字符串 (URL) 或 null
版本历史:
0.1.0 - 添加

in_reply_to_id

描述: 要回复的嘟文的 ID。
类型: nullable 字符串(从整数转换而来,但不保证是数字)或 null
版本历史:
0.1.0 - 添加

in_reply_to_account_id

描述: 撰写要回复的嘟文的帐户的 ID。
类型: nullable 字符串(从整数转换而来,但不保证是数字)或 null
版本历史:
0.1.0 - 添加

reblog

描述: 要转发的嘟文。
类型: nullable Status 或 null
版本历史:
0.1.0 - 添加

poll

描述: 附加到嘟文的投票。
类型: nullable Poll 或 null
版本历史:
2.8.0 - 添加

card

描述: 嘟文内容中包含的链接的预览卡片。
类型: nullable PreviewCard 或 null
版本历史:
2.6.0 - 添加

language

描述: 此嘟文的主要语言。
类型: nullable 字符串(ISO 639 第 1 部分两位字母语言代码)或 null
版本历史:
1.4.0 - 添加

text

描述: 嘟文的原始纯文本。当嘟文被删除时返回,而不是返回 content,因此用户可以从源文本中重新起草,而无需客户端从 HTML 内容中逆向得到原始文本。
类型: nullable 字符串或 null
版本历史:
2.9.0 - 添加

edited_at

描述: 上次编辑嘟文的时间戳。
类型: nullable (Datetime) 字符串
版本历史:
3.5.0 - 添加

favourited 可选

描述: 如果当前令牌具有授权用户:该授权用户是否喜欢了此嘟文?
类型: 布尔值
版本历史:
0.1.0 - 添加

reblogged 可选

描述: 如果当前令牌具有授权用户:该授权用户是否已转发此嘟文?
类型: 布尔值
版本历史:
0.1.0 - 添加

muted 可选

描述: 如果当前令牌具有授权用户:该授权用户是否隐藏了有关此嘟文的通知?
类型: 布尔值
版本历史:
1.4.0 - 添加

bookmarked 可选

描述: 如果当前令牌具有授权用户:该授权用户是否已将此嘟文添加到书签?
类型: 布尔值
版本历史:
3.1.0 - 添加

pinned 可选

描述: 如果当前令牌具有授权用户:该授权用户是否已置顶此嘟文?仅当嘟文可置顶时才会返回。
类型: 布尔值
版本历史:
1.6.0 - 添加

filtered 可选

描述: 如果当前令牌具有授权用户:此嘟文命中的过滤规则和关键词。
类型: FilterResult 数组
版本历史:
4.0.0 - 添加

Status::Mention 属性

id

描述: 被提及用户的帐户 ID。
类型: 字符串(从整数类型转换而来,但不保证是数字)
版本历史:
0.6.0 - 添加

username

描述: 被提及用户的用户名。
类型: 字符串
版本历史:
0.6.0 - 添加

url

描述: 被提及用户的账户位置。
类型: 字符串 (URL)
版本历史:
0.6.0 - 添加

acct

描述: 被提及用户的 webfinger acct: URI。对于本站用户,等同于 username,对于外站用户,等同于 username@domain。
类型: 字符串
版本历史:
0.6.0 - 添加

Status::Tag 属性

name

描述: # 符号后的话题标签名。
类型: 字符串
版本历史:
0.9.0 - 添加

url

描述: 指向实例上话题标签的链接。
类型: 字符串 (URL)
版本历史:
0.9.0 - 添加

参见

GET /api/v1/accounts/:id/statuses
POST /api/v2/search/
statuses methods
app/serializers/rest/status_serializer.rb

翻译状态: 本文是英文页面 Status 的翻译,最后翻译时间:2025-04-21,点击这里可以查看翻译后页面的改动。

最后更新于 April 21, 2025 · 改进此页面
也可在此找到: English

赞助商

Dotcom-Monitor LoadView Stephen Tures Swayable SponsorMotion

加入Mastodon · 博客 ·

查看源代码 · CC BY-SA 4.0 · 版权信息