e03966e18da4782879c8f211b852a3450bba014f
[akkoma] / lib / mix / tasks / pleroma / activity.ex
1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
4
5 defmodule Mix.Tasks.Pleroma.Activity do
6 alias Pleroma.Activity
7 require Logger
8 import Mix.Pleroma
9 use Mix.Task
10
11 @shortdoc "A collection of activity debug tasks"
12 @moduledoc """
13 A collection of activity related tasks
14
15 mix pleroma.activity get <id>
16 """
17 def run(["get", id | _rest]) do
18 start_pleroma()
19 id
20 |> Activity.get_by_id()
21 |> IO.inspect()
22 end
23 end