View Source Mobilizon.Posts.Post (Mobilizon v5.0.0-beta.1)

Module that represent Posts published by groups

Summary

Functions

Whether we can show the post. Returns false if the organizer actor or group is suspended

Types

@type t() :: %Mobilizon.Posts.Post{
  __meta__: term(),
  attributed_to: Mobilizon.Actors.Actor.t(),
  attributed_to_id: term(),
  author: Mobilizon.Actors.Actor.t(),
  author_id: term(),
  body: String.t(),
  draft: boolean(),
  id: String.t(),
  inserted_at: term(),
  language: String.t(),
  local: boolean(),
  media: [Mobilizon.Medias.Media.t()],
  picture: Mobilizon.Medias.Media.t(),
  picture_id: term(),
  publish_at: DateTime.t(),
  slug: String.t(),
  tags: [Mobilizon.Events.Tag.t()],
  title: String.t(),
  updated_at: term(),
  url: String.t(),
  visibility: atom()
}

Functions

@spec show?(t()) :: boolean()

Whether we can show the post. Returns false if the organizer actor or group is suspended