MastoAPI: Add GET /api/v1/polls/:id
This commit is contained in:
parent
ff61d34502
commit
63b0b7190c
4 changed files with 69 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue