Merge branch 'private-pins' into 'develop'

Support private pinned posts from Mastodon

See merge request pleroma/pleroma!3611
This commit is contained in:
Alex Gleason 2022-01-20 23:18:24 +00:00
commit 6ffe43af70
4 changed files with 126 additions and 10 deletions

View file

@ -1664,7 +1664,10 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
"orderedItems" => objects
})
when type in ["OrderedCollection", "Collection"] do
Map.new(objects, fn %{"id" => object_ap_id} -> {object_ap_id, NaiveDateTime.utc_now()} end)
Map.new(objects, fn
%{"id" => object_ap_id} -> {object_ap_id, NaiveDateTime.utc_now()}
object_ap_id when is_binary(object_ap_id) -> {object_ap_id, NaiveDateTime.utc_now()}
end)
end
def fetch_and_prepare_featured_from_ap_id(nil) do