From 4d8f97453b98c996e71d10e85f86b2a30e71f2b4 Mon Sep 17 00:00:00 2001 From: sadposter Date: Mon, 1 Jul 2019 17:58:51 +0100 Subject: [PATCH] Add activity get mix task --- lib/mix/tasks/pleroma/activity.ex | 23 +++++++++++++++++++++++ priv/static/index.html | 6 +----- priv/static/sw-pleroma.js | Bin 31393 -> 31068 bytes 3 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 lib/mix/tasks/pleroma/activity.ex diff --git a/lib/mix/tasks/pleroma/activity.ex b/lib/mix/tasks/pleroma/activity.ex new file mode 100644 index 000000000..e03966e18 --- /dev/null +++ b/lib/mix/tasks/pleroma/activity.ex @@ -0,0 +1,23 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2018 Pleroma Authors +# 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 + """ + def run(["get", id | _rest]) do + start_pleroma() + id + |> Activity.get_by_id() + |> IO.inspect() + end +end diff --git a/priv/static/index.html b/priv/static/index.html index 6e84ec3da..e58c4380b 100644 --- a/priv/static/index.html +++ b/priv/static/index.html @@ -1,5 +1 @@ -<<<<<<< HEAD -Pleroma
-======= -Pleroma
->>>>>>> 456668b490e9ee47cf773a8563a9f3a3765ce348 +Pleroma
\ No newline at end of file diff --git a/priv/static/sw-pleroma.js b/priv/static/sw-pleroma.js index d90d692dea9664dbaad7271d5283c29d1b3f9e73..3851dc49f975120d8d0b3e6dd4505aebc66260ed 100644 GIT binary patch delta 18 acmZ4ZmGRCe#)-W3lP5DaY<6LatpEU2$OriV delta 138 zcmccfiE-gqMqV2TQ1Ebdbm5v%FOrm!mXcy*YGIyeX=s#|VrF5PWIS$G;?#~ bL<>_h<3!6e<3wX~Gt=Z$V-t&w|KchDbxbLk