1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 # FIXME: Remove this module?
6 # THIS MODULE IS DEPRECATED! DON'T USE IT!
7 # USE THE Pleroma.Web.TwitterAPI.Views.ActivityView MODULE!
8 defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenter do
9 def to_map(activity, opts) do
10 Pleroma.Web.TwitterAPI.ActivityView.render(
12 Map.put(opts, :activity, activity)