MastoAPI: Add GET /api/v1/polls/:id

This commit is contained in:
rinpatch 2019-05-21 20:40:35 +03:00
commit 63b0b7190c
4 changed files with 69 additions and 0 deletions

View file

@ -35,6 +35,9 @@ defmodule Pleroma.Object do
|> unique_constraint(:ap_id, name: :objects_unique_apid_index)
end
def get_by_id(nil), do: nil
def get_by_id(id), do: Repo.get(Object, id)
def get_by_ap_id(nil), do: nil
def get_by_ap_id(ap_id) do