Move Activity under Events context

This commit is contained in:
miffigriffy
2019-09-13 01:35:03 +02:00
parent e358dcce77
commit d3f3553ae7
17 changed files with 59 additions and 50 deletions

View File

@@ -1,7 +0,0 @@
defmodule Mobilizon.Activity do
@moduledoc """
Represents an activity
"""
defstruct [:data, :local, :actor, :recipients, :notifications]
end

View File

@@ -0,0 +1,13 @@
defmodule Mobilizon.Events.Activity do
@moduledoc """
Represents an activity.
"""
defstruct [
:data,
:local,
:actor,
:recipients,
:notifications
]
end

View File

@@ -587,8 +587,6 @@ defmodule Mobilizon.Events do
def get_tag(id), do: Repo.get(Tag, id)
def get_tag_by_slug(slug) do
query =
from(
@@ -760,9 +758,6 @@ defmodule Mobilizon.Events do
Repo.all(final_query)
end
alias Mobilizon.Events.Participant
@doc """