소스 검색

AdminAPI: Fix grouped reports for closed/resolved reports

feature/compile_get
Maxim Filippov 4 년 전
부모
커밋
1364d303f8
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. +2
    -1
      lib/pleroma/web/activity_pub/utils.ex

+ 2
- 1
lib/pleroma/web/activity_pub/utils.ex 파일 보기

@@ -852,7 +852,8 @@ defmodule Pleroma.Web.ActivityPub.Utils do
def get_reports_by_status_id(ap_id) do
from(a in Activity,
where: fragment("(?)->>'type' = 'Flag'", a.data),
where: fragment("(?)->'object' @> ?", a.data, ^[%{id: ap_id}])
where: fragment("(?)->'object' @> ?", a.data, ^[%{id: ap_id}]),
or_where: fragment("(?)->'object' @> ?", a.data, ^[ap_id])
)
|> Activity.with_preloaded_user_actor()
|> Repo.all()


불러오는 중...
취소
저장