Fix invalid type
lib/pleroma/migrators/hashtags_table_migrator.ex:103:unknown_type Unknown type: Map.t/0.
This commit is contained in:
parent
559aeb5dd0
commit
593c7e26d4
|
@ -100,7 +100,7 @@ def query do
|
||||||
|> where([_o, hashtags_objects], is_nil(hashtags_objects.object_id))
|
|> where([_o, hashtags_objects], is_nil(hashtags_objects.object_id))
|
||||||
end
|
end
|
||||||
|
|
||||||
@spec transfer_object_hashtags(Map.t()) :: {:noop | :ok | :error, integer()}
|
@spec transfer_object_hashtags(map()) :: {:noop | :ok | :error, integer()}
|
||||||
defp transfer_object_hashtags(object) do
|
defp transfer_object_hashtags(object) do
|
||||||
embedded_tags = if Map.has_key?(object, :tag), do: object.tag, else: object.data["tag"]
|
embedded_tags = if Map.has_key?(object, :tag), do: object.tag, else: object.data["tag"]
|
||||||
hashtags = Object.object_data_hashtags(%{"tag" => embedded_tags})
|
hashtags = Object.object_data_hashtags(%{"tag" => embedded_tags})
|
||||||
|
|
Loading…
Reference in New Issue