View Source Mobilizon.GraphQL.API.Utils (Mobilizon v4.1.0-alpha.1)

Utils for API.

Summary

Functions

Use the data-media-id attributes to extract media from body text

Creates HTML content from text and mentions

Functions

Link to this function

extract_pictures_from_body(body, actor_id)

View Source
@spec extract_pictures_from_body(String.t(), integer() | String.t()) :: [
  Mobilizon.Medias.Media.t()
]

Use the data-media-id attributes to extract media from body text

Link to this function

format_input(text, binary, options)

View Source
Link to this function

make_content_html(text, additional_tags, content_type)

View Source
@spec make_content_html(String.t(), list(), String.t()) ::
  {String.t(), list(), list()}

Creates HTML content from text and mentions