Apply, suggestions, use strings for actual Mastodon API compatibility
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
5c383ada8a
commit
b354d70e85
11 changed files with 38 additions and 15 deletions
|
|
@ -37,6 +37,8 @@ defmodule Pleroma.Rule do
|
|||
|
||||
def get(id), do: Repo.get(__MODULE__, id)
|
||||
|
||||
def exists?(id), do: not is_nil(get(id))
|
||||
|
||||
def create(params) do
|
||||
{:ok, rule} =
|
||||
%Rule{}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue