Use context_ids directly if we have them.

This commit is contained in:
lain 2018-04-02 15:28:35 +02:00
commit 360c51f1f5
3 changed files with 6 additions and 12 deletions

View file

@ -212,6 +212,7 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do
DateTime.utc_now() |> DateTime.to_iso8601()
end
# DEPRECATED mostly, context objects are now created at insertion time.
def context_to_conversation_id(context) do
with %Object{id: id} <- Object.get_cached_by_ap_id(context) do
id