소스 검색
Fix wrong target URIs in ActivityPub Add/Remove (#6668)
master
Eugen Rochko
6 년 전
committed by
GitHub
No known key found for this signature in database
GPG 키 ID: 4AEE18F83AFDEB23
2개의 변경된 파일과
2개의 추가작업 그리고
2개의 파일을 삭제
-
app/serializers/activitypub/add_serializer.rb
-
app/serializers/activitypub/remove_serializer.rb
|
|
@@ -19,6 +19,6 @@ class ActivityPub::AddSerializer < ActiveModel::Serializer |
|
|
|
end |
|
|
|
|
|
|
|
def target |
|
|
|
account_collection_url(object, :featured) |
|
|
|
account_collection_url(object.account, :featured) |
|
|
|
end |
|
|
|
end |
|
|
@@ -19,6 +19,6 @@ class ActivityPub::RemoveSerializer < ActiveModel::Serializer |
|
|
|
end |
|
|
|
|
|
|
|
def target |
|
|
|
account_collection_url(object, :featured) |
|
|
|
account_collection_url(object.account, :featured) |
|
|
|
end |
|
|
|
end |