You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
defmodule Pleroma.Elasticsearch.DocumentMappings.User do
|
|
def id(obj), do: obj.id
|
|
|
|
def encode(%{actor_type: "Person"} = user) do
|
|
%{
|
|
timestamp: user.inserted_at,
|
|
instance: URI.parse(user.ap_id).host,
|
|
nickname: user.nickname,
|
|
bio: user.bio,
|
|
display_name: user.name
|
|
}
|
|
end
|
|
end
|