* 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: おかしいコード
23 lines
537 B
Ruby
23 lines
537 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ActivityPub::ContextsController < ActivityPub::BaseController
|
|
include SignatureVerification
|
|
|
|
vary_by -> { 'Signature' if authorized_fetch_mode? }
|
|
|
|
before_action :set_context
|
|
|
|
def show
|
|
expires_in 3.minutes, public: true
|
|
render json: @context,
|
|
serializer: ActivityPub::ContextSerializer,
|
|
adapter: ActivityPub::Adapter,
|
|
content_type: 'application/activity+json'
|
|
end
|
|
|
|
private
|
|
|
|
def set_context
|
|
@context = Conversation.find(params[:id])
|
|
end
|
|
end
|