CommonFields: remove context_id

This commit is contained in:
Hélène 2022-08-06 03:32:58 +02:00
parent f3e061c964
commit 7f71e3d0fe
No known key found for this signature in database
GPG Key ID: A215F2E9F1589D62
2 changed files with 0 additions and 5 deletions

View File

@ -51,8 +51,6 @@ defmacro status_object_fields do
field(:summary, :string)
field(:context, :string)
# short identifier for PleromaFE to group statuses by context
field(:context_id, :integer)
field(:sensitive, :boolean, default: false)
field(:replies_count, :integer, default: 0)

View File

@ -57,9 +57,6 @@ defp get_replied_to_activities(activities) do
end)
end
defp get_context_id(%{data: %{"context_id" => context_id}}) when not is_nil(context_id),
do: context_id
defp get_context_id(%{data: %{"context" => context}}) when is_binary(context),
do: :erlang.crc32(context)