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

Relationship

表示账户之间的关系,例如关注/屏蔽/隐藏等。

    • 示例
    • 属性
      • id
      • following
      • showing_reblogs
      • notifying
      • languages
      • followed_by
      • blocking
      • blocked_by
      • muting
      • muting_notifications
      • requested
      • requested_by
      • domain_blocking
      • endorsed
      • note
    • 参见

示例

{
  "id": "1",
  "following": true,
  "showing_reblogs": true,
  "notifying": false,
  "followed_by": true,
  "blocking": false,
  "blocked_by": false,
  "muting": false,
  "muting_notifications": false,
  "requested": false,
  "requested_by": false,
  "domain_blocking": false,
  "endorsed": false,
  "note": ""
}

属性

id

描述: 账户 ID。
类型: 字符串 (从整数转换而来,但不保证一定是数字)
版本历史: 0.6.0 - 添加

following

描述: 你是否正在关注此用户?
类型: 布尔值
版本历史: 0.6.0 - 添加

showing_reblogs

描述: 你是否在你的首页时间线中接收此用户的转发?
类型: 布尔值
版本历史: 2.1.0 - 添加

notifying

描述: 你是否为此用户启用了通知?
类型: 布尔值
版本历史: 3.3.0 - 添加

languages

描述: 你正在关注此用户的哪些语言?
类型: 字符串数组 (ISO 639-1 双字符语言代码)
版本历史: 4.0.0 - 添加

followed_by

描述: 此用户是否正在关注你?
类型: 布尔值
版本历史: 0.6.0 - 添加

blocking

描述: 你是否正在屏蔽此用户?
类型: 布尔值
版本历史: 0.6.0 - 添加

blocked_by

描述: 此用户是否正在屏蔽你?
类型: 布尔值
版本历史: 2.8.0 - 添加

muting

描述: 你是否正在隐藏此用户?
类型: 布尔值
版本历史: 1.1.0 - 添加

muting_notifications

描述: 你是否正在隐藏来自此用户的通知?
类型: 布尔值
版本历史: 2.1.0 - 添加

requested

描述: 你是否有对此用户待处理的关注请求?
类型: 布尔值
版本历史: 0.9.9 - 添加

requested_by

描述: 此用户是否请求关注你?
类型: 布尔值
版本历史: 4.1.0 - 添加

domain_blocking

描述: 你是否正在屏蔽此用户的域名?
类型: 布尔值
版本历史: 1.4.0 - 添加

endorsed

描述: 你是否在你的账户上推荐此用户?
类型: 布尔值
版本历史: 2.5.0 - 添加

note

描述: 此用户的账户简介
类型: 字符串
版本历史: 3.2.0 - 添加

参见

GET /api/v1/accounts/relationships
app/serializers/rest/relationship_serializer.rb

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

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

赞助商

Dotcom-Monitor LoadView Stephen Tures Swayable SponsorMotion

加入Mastodon · 博客 ·

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