11 lines
199 B
Elixir
11 lines
199 B
Elixir
defmodule Pleroma.Elasticsearch.DocumentMappings.Hashtag do
|
|
def id(obj), do: obj.id
|
|
|
|
def encode(hashtag) do
|
|
%{
|
|
hashtag: hashtag.name,
|
|
timestamp: hashtag.timestamp
|
|
}
|
|
end
|
|
end
|