mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 11:19:19 +00:00
Use different index for object fetching.
This commit is contained in:
parent
261ec82451
commit
ec546baee9
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ defmodule Pleroma.Object do
|
|||
def get_by_ap_id(nil), do: nil
|
||||
def get_by_ap_id(ap_id) do
|
||||
Repo.one(from object in Object,
|
||||
where: fragment("? @> ?", object.data, ^%{id: ap_id}))
|
||||
where: fragment("(?)->>'id' = ?", object.data, ^ap_id))
|
||||
end
|
||||
|
||||
def get_cached_by_ap_id(ap_id) do
|
||||
|
|
Loading…
Reference in a new issue