Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F21968715
object.ex
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
303 B
Referenced Files
None
Subscribers
None
object.ex
View Options
defmodule
Pleroma.Object
do
use
Ecto.Schema
alias
Pleroma
.
{
Repo
,
Object
}
import
Ecto.Query
schema
"objects"
do
field
:data
,
:map
timestamps
()
end
def
get_by_ap_id
(
ap_id
)
do
Repo
.
one
(
from
object
in
Object
,
where
:
fragment
(
"? @> ?"
,
object
.
data
,
^
%{
id
:
ap_id
}))
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Sun, Dec 28, 3:25 AM (11 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
724600
Default Alt Text
object.ex (303 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment