Merge remote-tracking branch 'upstream/develop' into feature/openldap-support
[akkoma] / lib / pleroma / web / twitter_api / representers / activity_representer.ex
1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
4
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(
11 "activity.json",
12 Map.put(opts, :activity, activity)
13 )
14 end
15 end