Skip to content

Commit

Permalink
https://github.com/bonfire-networks/bonfire-app/issues/831
Browse files Browse the repository at this point in the history
  • Loading branch information
mayel committed Jan 25, 2024
1 parent 3fb0159 commit 6f335d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/acts/attach_media_act.ex
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,6 @@ defmodule Bonfire.Files.Acts.AttachMedia do
List.wrap(uploaded_media)
|> Enum.map(&%{media: &1})
|> Changesets.put_assoc(changeset, :files, ...)
|> IO.inspect(label: "cs with media")
end
end
4 changes: 2 additions & 2 deletions lib/acts/url_previews_act.ex
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ defmodule Bonfire.Files.Acts.URLPreviews do
(Map.get(epic.assigns, text_key) || epic.assigns[:options][text_key] || "")
|> String.split()
|> Enum.reject(&(&1 in urls or !Bonfire.Files.DOI.is_pub_id_or_uri_match?(&1)))
|> IO.inspect()
# |> IO.inspect()
|> Enum.map(&maybe_fetch_and_save(current_user, &1, {Bonfire.Files.DOI, :fetch}))
|> Enums.filter_empty([])
|> IO.inspect()

(text_media ++ urls_media)
|> IO.inspect(label: "all media")
|> smart(epic, act, ..., "metadata")
|> Epic.assign(epic, media_key, ...)

Expand Down

0 comments on commit 6f335d7

Please sign in to comment.