akkoma/lib/mix/tasks/pleroma/activity.ex

25 lines
548 B
Elixir
Raw Normal View History

2019-07-01 16:58:51 +00:00
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Mix.Tasks.Pleroma.Activity do
alias Pleroma.Activity
require Logger
import Mix.Pleroma
use Mix.Task
@shortdoc "A collection of activity debug tasks"
@moduledoc """
A collection of activity related tasks
mix pleroma.activity get <id>
"""
def run(["get", id | _rest]) do
start_pleroma()
2019-07-01 16:58:51 +00:00
id
|> Activity.get_by_id()
|> IO.inspect()
end
end