Apply, suggestions, use strings for actual Mastodon API compatibility

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2022-05-30 12:30:03 +02:00
commit b354d70e85
11 changed files with 38 additions and 15 deletions

View file

@ -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{}