Add basic mastodon notification support.

This commit is contained in:
Roger Braun 2017-09-11 16:15:28 +02:00
commit 61adf676d5
8 changed files with 108 additions and 6 deletions

View file

@ -1,11 +1,12 @@
defmodule Pleroma.Activity do
use Ecto.Schema
alias Pleroma.{Repo, Activity}
alias Pleroma.{Repo, Activity, Notification}
import Ecto.Query
schema "activities" do
field :data, :map
field :local, :boolean, default: true
has_many :notifications, Notification
timestamps()
end