* Add: `conversations`テーブルに`ancestor_status`プロパティ * Fix test * Fix test more * Add: `limited_visibility`に`Reply`を追加、`context`のURI * Add: 外部からの`context`受信処理 * Fix test * Add: 公開範囲「返信」 * Fix test * Fix: 返信に返信以外の公開範囲を設定できない問題 * Add: ローカル投稿時にメンション追加・他サーバーへの転送 * Fix test * Fix test * Test: ローカルスレッドへの返信投稿の転送 * Test: 未知のアカウントからのメンション * Add: 編集・削除の連合に対応 * Remove: 重複テスト * Fix: 改善 * Add: 編集削除の転送処理・返信なのにsilentなメンションでの通知 * Fix: リプライが第三者に届かない問題 * Add: `always_sign_unsafe` * Add: Subject * Remove space * Fix: 他人のスレッドの送信先一覧を非表示 * Fix: おかしいコード
21 lines
373 B
Ruby
21 lines
373 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ActivityPub::ContextSerializer < ActivityPub::Serializer
|
|
include RoutingHelper
|
|
|
|
attributes :id, :type, :inbox
|
|
|
|
def id
|
|
ActivityPub::TagManager.instance.uri_for(object)
|
|
end
|
|
|
|
def type
|
|
'Group'
|
|
end
|
|
|
|
def inbox
|
|
return '' if object.ancestor_status.nil?
|
|
|
|
account_inbox_url(object.ancestor_status.account)
|
|
end
|
|
end
|