akkoma
5 years agoEnsure empty array is returned for tags
Maxim Filippov [Thu, 14 Mar 2019 00:17:09 +0000 (03:17 +0300)]
Ensure empty array is returned for tags

5 years agoAdd tags
Maxim Filippov [Wed, 13 Mar 2019 22:52:24 +0000 (01:52 +0300)]
Add tags

5 years agoAdd test when local is false
Maxim Filippov [Wed, 13 Mar 2019 14:56:15 +0000 (17:56 +0300)]
Add test when local is false

5 years agoFix test
Maxim Filippov [Wed, 13 Mar 2019 13:14:31 +0000 (16:14 +0300)]
Fix test

5 years agoAdd "local" to users admin API
Maxim Filippov [Wed, 13 Mar 2019 13:04:44 +0000 (16:04 +0300)]
Add "local" to users admin API

5 years agoMerge branch 'features/add-credo-to-ci' into 'develop'
lambda [Wed, 13 Mar 2019 09:09:44 +0000 (09:09 +0000)]
Merge branch 'features/add-credo-to-ci' into 'develop'

Add credo to CI

See merge request pleroma/pleroma!902

5 years agoPleroma.Web.TwitterAPI.Controller: Remove duplicated alias/es
Haelwenn (lanodan) Monnier [Thu, 7 Mar 2019 23:34:36 +0000 (00:34 +0100)]
Pleroma.Web.TwitterAPI.Controller: Remove duplicated alias/es

5 years ago.gitlab-ci.yml: Use --strict instead of list
Haelwenn (lanodan) Monnier [Tue, 5 Mar 2019 05:11:21 +0000 (06:11 +0100)]
.gitlab-ci.yml: Use --strict instead of list

This makes the output to be more compact while not loosing readability
--format=flycheck // --format=json could also be used but they are
not very human readable

5 years ago[Credo][CI] Add readability as it’s fixed
Haelwenn (lanodan) Monnier [Tue, 5 Mar 2019 05:07:21 +0000 (06:07 +0100)]
[Credo][CI] Add readability as it’s fixed

5 years ago[Credo] Change quoted string with 3+ quotes to sigils
Haelwenn (lanodan) Monnier [Tue, 5 Mar 2019 04:44:53 +0000 (05:44 +0100)]
[Credo] Change quoted string with 3+ quotes to sigils

5 years ago[Credo] fix Credo.Check.Readability.MaxLineLength
Haelwenn (lanodan) Monnier [Tue, 5 Mar 2019 04:37:33 +0000 (05:37 +0100)]
[Credo] fix Credo.Check.Readability.MaxLineLength

5 years ago[Credo] write large numbers with underscore separation
Haelwenn (lanodan) Monnier [Tue, 5 Mar 2019 04:03:13 +0000 (05:03 +0100)]
[Credo] write large numbers with underscore separation

5 years ago[Credo] make all variables use snake_case
Haelwenn (lanodan) Monnier [Tue, 5 Mar 2019 03:36:19 +0000 (04:36 +0100)]
[Credo] make all variables use snake_case

5 years ago[Credo] Remove parentesis on argument-less functions
Haelwenn (lanodan) Monnier [Tue, 5 Mar 2019 03:18:43 +0000 (04:18 +0100)]
[Credo] Remove parentesis on argument-less functions

5 years ago[Credo] fix Credo.Check.Readability.AliasOrder
Haelwenn (lanodan) Monnier [Tue, 5 Mar 2019 02:52:23 +0000 (03:52 +0100)]
[Credo] fix Credo.Check.Readability.AliasOrder

5 years ago[Credo] Fix the consistency
Haelwenn (lanodan) Monnier [Tue, 5 Mar 2019 01:45:07 +0000 (02:45 +0100)]
[Credo] Fix the consistency

5 years ago.credo.exs: Clear removed tests
Haelwenn (lanodan) Monnier [Tue, 5 Mar 2019 01:38:42 +0000 (02:38 +0100)]
.credo.exs: Clear removed tests

5 years ago[Credo][CI] Do not make TODO/FIXME fail
Haelwenn (lanodan) Monnier [Tue, 5 Mar 2019 01:32:12 +0000 (02:32 +0100)]
[Credo][CI] Do not make TODO/FIXME fail

5 years ago[Credo] Fix the warnings
Haelwenn (lanodan) Monnier [Tue, 5 Mar 2019 01:30:19 +0000 (02:30 +0100)]
[Credo] Fix the warnings

5 years ago.gitlab-ci.yml: Adds credo to the chain
Haelwenn (lanodan) Monnier [Tue, 5 Mar 2019 01:24:12 +0000 (02:24 +0100)]
.gitlab-ci.yml: Adds credo to the chain

Not really sure about the order in which this is but it feels right
because credo is more about checking if a ~working code could need
some improvements.<M-1>

5 years agoMerge branch 'feature/add-roles-to-users-admin-api' into 'develop'
kaniini [Tue, 12 Mar 2019 19:50:51 +0000 (19:50 +0000)]
Merge branch 'feature/add-roles-to-users-admin-api' into 'develop'

Add "roles" to users admin API

See merge request pleroma/pleroma!928

5 years agoAdd "roles" to users admin API
Maxim Filippov [Tue, 12 Mar 2019 19:15:28 +0000 (22:15 +0300)]
Add "roles" to users admin API

5 years agoMerge branch 'masto-api-followers-following' into 'develop'
kaniini [Tue, 12 Mar 2019 16:27:47 +0000 (16:27 +0000)]
Merge branch 'masto-api-followers-following' into 'develop'

MastoAPI followers/following endpoints

See merge request pleroma/pleroma!924

5 years agoMastoAPI followers/following endpoints
eugenijm [Mon, 11 Mar 2019 18:03:30 +0000 (21:03 +0300)]
MastoAPI followers/following endpoints

5 years agoMerge branch 'add-screenname-extension-to-masto-api' into 'develop'
kaniini [Mon, 11 Mar 2019 21:43:46 +0000 (21:43 +0000)]
Merge branch 'add-screenname-extension-to-masto-api' into 'develop'

MastoAPI Accounts: Add fetching by nickname.

See merge request pleroma/pleroma!922

5 years agoMerge branch 'add-activity-id-to-push-messages' into 'develop'
kaniini [Mon, 11 Mar 2019 21:43:06 +0000 (21:43 +0000)]
Merge branch 'add-activity-id-to-push-messages' into 'develop'

WebPush: Add activity id to the push messages.

See merge request pleroma/pleroma!925

5 years agoMerge branch 'ci-switch-to-elixir-1-8-1' into 'develop'
rinpatch [Mon, 11 Mar 2019 19:40:45 +0000 (19:40 +0000)]
Merge branch 'ci-switch-to-elixir-1-8-1' into 'develop'

Switch the CI to Elixir 1.8.1

See merge request pleroma/pleroma!926

5 years agoSwitch the CI to Elixir 1.8.1
rinpatch [Mon, 11 Mar 2019 19:36:02 +0000 (22:36 +0300)]
Switch the CI to Elixir 1.8.1

5 years agoLinting.
lain [Mon, 11 Mar 2019 18:32:21 +0000 (19:32 +0100)]
Linting.

5 years agoWebPush: Add activity id to the push messages.
lain [Mon, 11 Mar 2019 18:23:21 +0000 (19:23 +0100)]
WebPush: Add activity id to the push messages.

Makes it easier to relate the push to a given status.

5 years agoMastoAPI Accounts: Add fetching by nickname.
lain [Mon, 11 Mar 2019 14:18:32 +0000 (15:18 +0100)]
MastoAPI Accounts: Add fetching by nickname.

This is to make it easier for the frontends to handle domain.com/users/nickname
urls.

5 years agoMerge branch 'add-local-field-to-status' into 'develop'
lambda [Mon, 11 Mar 2019 13:26:12 +0000 (13:26 +0000)]
Merge branch 'add-local-field-to-status' into 'develop'

MastoAPI StatusView: Add locality indicator.

See merge request pleroma/pleroma!920

5 years agoUpdate Differences-in-MastodonAPI-Responses.md
lambda [Mon, 11 Mar 2019 13:21:03 +0000 (13:21 +0000)]
Update Differences-in-MastodonAPI-Responses.md

5 years agoMerge branch 'feat/style-oauth-login-page' into 'develop'
lambda [Mon, 11 Mar 2019 13:19:24 +0000 (13:19 +0000)]
Merge branch 'feat/style-oauth-login-page' into 'develop'

Style again the OAuth login page to fit pleroma more

See merge request pleroma/pleroma!921

5 years agoMerge branch 'broadcast-activity-id-on-deletion' into 'develop'
lambda [Mon, 11 Mar 2019 13:19:09 +0000 (13:19 +0000)]
Merge branch 'broadcast-activity-id-on-deletion' into 'develop'

Broadcast proper deleted activity id to conform to MastoAPI streaming spec

See merge request pleroma/pleroma!917

5 years agoMerge branch 'fix/roma-links-clients-md' into 'develop'
lambda [Mon, 11 Mar 2019 13:15:45 +0000 (13:15 +0000)]
Merge branch 'fix/roma-links-clients-md' into 'develop'

Update homepages and provide source code links for Roma apps in Clients.md

See merge request pleroma/pleroma!919

5 years agoRemove chromium input hilight that clashes with our own
Shpuld Shpuldson [Mon, 11 Mar 2019 13:10:42 +0000 (15:10 +0200)]
Remove chromium input hilight that clashes with our own

5 years agoStyle again the login page to fit pleroma more
Shpuld Shpuldson [Mon, 11 Mar 2019 12:57:04 +0000 (14:57 +0200)]
Style again the login page to fit pleroma more

5 years agoMastoAPI StatusView: Add locality indicator.
lain [Mon, 11 Mar 2019 12:48:27 +0000 (13:48 +0100)]
MastoAPI StatusView: Add locality indicator.

5 years agoBroadcast deleted activity id on deletion to conform to MastoAPI streamig spec
eugenijm [Sat, 9 Mar 2019 11:12:15 +0000 (14:12 +0300)]
Broadcast deleted activity id on deletion to conform to MastoAPI streamig spec

5 years agoChange order of source code to align with platforms
rinpatch [Mon, 11 Mar 2019 05:36:56 +0000 (08:36 +0300)]
Change order of source code to align with platforms

5 years agoUpdate homepages and provide source code links for Roma apps in Clients.md
rinpatch [Mon, 11 Mar 2019 05:33:57 +0000 (08:33 +0300)]
Update homepages and provide source code links for Roma apps in Clients.md

5 years agoMerge branch 'patch-2' into 'develop'
rinpatch [Mon, 11 Mar 2019 05:27:14 +0000 (05:27 +0000)]
Merge branch 'patch-2' into 'develop'

[Doc] Rename Mastalab -> Fedilab in Clients.md

See merge request pleroma/pleroma!918

5 years agoRename Mastalab -> Fedilab in Clients.md
Hakaba Hitoyo [Mon, 11 Mar 2019 01:40:34 +0000 (01:40 +0000)]
Rename Mastalab -> Fedilab in Clients.md

5 years agoMerge branch 'bugfix/tesla-safety' into 'develop'
kaniini [Fri, 8 Mar 2019 23:02:55 +0000 (23:02 +0000)]
Merge branch 'bugfix/tesla-safety' into 'develop'

tesla hardening

Closes #712 and #672

See merge request pleroma/pleroma!912

5 years agohttp: connection: unify adapter configuration and defaults
William Pitcock [Fri, 8 Mar 2019 22:59:10 +0000 (22:59 +0000)]
http: connection: unify adapter configuration and defaults

5 years agohttp: connection: relax the timeouts a little
William Pitcock [Fri, 8 Mar 2019 22:50:43 +0000 (22:50 +0000)]
http: connection: relax the timeouts a little

5 years agohttp: rework connection timeouts to match hackney docs, enforce 1 second max TCP...
William Pitcock [Thu, 7 Mar 2019 23:49:02 +0000 (23:49 +0000)]
http: rework connection timeouts to match hackney docs, enforce 1 second max TCP connection timeout

5 years agohttp: actually pass the options list to the Connection factory
William Pitcock [Thu, 7 Mar 2019 23:32:58 +0000 (23:32 +0000)]
http: actually pass the options list to the Connection factory

5 years agohttp: connection: merge hackney option lists instead of concatenating them
William Pitcock [Thu, 7 Mar 2019 23:31:59 +0000 (23:31 +0000)]
http: connection: merge hackney option lists instead of concatenating them

this ensures the right pools are used

5 years agohttp: safely catch erlang exits and elixir errors from hackney (ref #672)
William Pitcock [Thu, 7 Mar 2019 23:18:59 +0000 (23:18 +0000)]
http: safely catch erlang exits and elixir errors from hackney (ref #672)

5 years agoMerge branch 'fix-tlsv1.3' into 'develop'
kaniini [Fri, 8 Mar 2019 22:53:12 +0000 (22:53 +0000)]
Merge branch 'fix-tlsv1.3' into 'develop'

Fix supported TLS versions as TLS 1.3 support seems buggy.

Closes #708

See merge request pleroma/pleroma!892

5 years agoMerge branch 'delete-status' into 'develop'
kaniini [Fri, 8 Mar 2019 22:47:41 +0000 (22:47 +0000)]
Merge branch 'delete-status' into 'develop'

Allow an admin to delete a user status #721 (MastoAPI)

See merge request pleroma/pleroma!914

5 years agoMerge branch 'fetch-posts-on-first-federation' into 'develop'
kaniini [Fri, 8 Mar 2019 22:33:31 +0000 (22:33 +0000)]
Merge branch 'fetch-posts-on-first-federation' into 'develop'

Fetch user's outbox posts on first federation with that user

Closes #131

See merge request pleroma/pleroma!907

5 years agoAllow an admin to delete a user status
eugenijm [Fri, 8 Mar 2019 17:21:56 +0000 (20:21 +0300)]
Allow an admin to delete a user status

5 years agoAdd tests for fetch_ordered_collection
Ekaterina Vaartis [Fri, 8 Mar 2019 13:26:16 +0000 (16:26 +0300)]
Add tests for fetch_ordered_collection

5 years agoFetch user's outbox posts on first federation with that user
Ekaterina Vaartis [Wed, 6 Mar 2019 21:13:26 +0000 (00:13 +0300)]
Fetch user's outbox posts on first federation with that user

5 years agoMerge branch 'update-mastofe/glitch-soc-2019-03-07' into 'develop'
kaniini [Fri, 8 Mar 2019 00:42:17 +0000 (00:42 +0000)]
Merge branch 'update-mastofe/glitch-soc-2019-03-07' into 'develop'

Update Mastodon Frontend to 2019-03-07 bundle

See merge request pleroma/pleroma!911

5 years agoUpdate Mastodon Frontend to 2019-03-07 bundle
Haelwenn (lanodan) Monnier [Thu, 7 Mar 2019 10:56:02 +0000 (11:56 +0100)]
Update Mastodon Frontend to 2019-03-07 bundle

See: https://git.pleroma.social/pleroma/mastofe/tags/bundle-2019-03-07

[ci skip]

5 years agoMerge branch 'bugfix/mrf-antifollowbot-nil-bio' into 'develop'
rinpatch [Thu, 7 Mar 2019 16:42:05 +0000 (16:42 +0000)]
Merge branch 'bugfix/mrf-antifollowbot-nil-bio' into 'develop'

MRF: anti followbot: gracefully handle nil display names

See merge request pleroma/pleroma!909

5 years agoMerge branch 'update/pleroma-fe-20190307' into 'develop'
kaniini [Thu, 7 Mar 2019 13:36:50 +0000 (13:36 +0000)]
Merge branch 'update/pleroma-fe-20190307' into 'develop'

update pleroma frontend

See merge request pleroma/pleroma!910

5 years agoupdate pleroma frontend
William Pitcock [Thu, 7 Mar 2019 13:31:03 +0000 (13:31 +0000)]
update pleroma frontend

5 years agotests: add regression test
William Pitcock [Thu, 7 Mar 2019 12:20:04 +0000 (12:20 +0000)]
tests: add regression test

5 years agoMRF: anti followbot: gracefully handle accounts without a display name
William Pitcock [Thu, 7 Mar 2019 12:13:48 +0000 (12:13 +0000)]
MRF: anti followbot: gracefully handle accounts without a display name

5 years agoMerge branch 'bugfix/delete-activity-audience' into 'develop'
rinpatch [Thu, 7 Mar 2019 11:31:08 +0000 (11:31 +0000)]
Merge branch 'bugfix/delete-activity-audience' into 'develop'

expand the audience of delete activities to all recipients of the deleted object

Closes #682

See merge request pleroma/pleroma!891

5 years agoAdjust delete activity audience to match the deleted object
Karen Konou [Thu, 7 Mar 2019 11:26:03 +0000 (12:26 +0100)]
Adjust delete activity audience to match the deleted object

5 years agoRevert existing object check
Karen Konou [Thu, 7 Mar 2019 10:53:15 +0000 (11:53 +0100)]
Revert existing object check

5 years agoMerge branch 'preserve-link-headers' into 'develop'
lambda [Thu, 7 Mar 2019 09:33:54 +0000 (09:33 +0000)]
Merge branch 'preserve-link-headers' into 'develop'

Preserves parameters in link headers

Closes #716

See merge request pleroma/pleroma!908

5 years agoPreserve parameters in link headers (Mastodon API)
eugenijm [Thu, 7 Mar 2019 02:29:42 +0000 (05:29 +0300)]
Preserve parameters in link headers (Mastodon API)

5 years agoMerge branch 'chore/merge-search-into-list-users' into 'develop'
kaniini [Wed, 6 Mar 2019 22:27:42 +0000 (22:27 +0000)]
Merge branch 'chore/merge-search-into-list-users' into 'develop'

Merge search endpoint into /users

See merge request pleroma/pleroma!898

5 years agoMerge branch 'bugfix/connect-src-https' into 'develop'
kaniini [Wed, 6 Mar 2019 13:22:02 +0000 (13:22 +0000)]
Merge branch 'bugfix/connect-src-https' into 'develop'

Plugs.HTTPSecurityPlug: Add static_url to CSP's connect-src

See merge request pleroma/pleroma!900

5 years agoMerge branch 'bugfix/rel-me_list' into 'develop'
kaniini [Wed, 6 Mar 2019 13:20:51 +0000 (13:20 +0000)]
Merge branch 'bugfix/rel-me_list' into 'develop'

Web.RelMe: Fix having other values in rel attr

See merge request pleroma/pleroma!901

5 years agoMerge branch 'feature/647' into 'develop'
kaniini [Wed, 6 Mar 2019 13:20:12 +0000 (13:20 +0000)]
Merge branch 'feature/647' into 'develop'

[#647] tests for web push

See merge request pleroma/pleroma!904

5 years ago[#647] tests for web push
Maksim [Wed, 6 Mar 2019 13:20:12 +0000 (13:20 +0000)]
[#647] tests for web push

5 years agoMerge branch 'features/masto_fe-config' into 'develop'
kaniini [Wed, 6 Mar 2019 13:19:26 +0000 (13:19 +0000)]
Merge branch 'features/masto_fe-config' into 'develop'

Add default config for masto_fe

See merge request pleroma/pleroma!906

5 years agoKeep heading short
Maxim Filippov [Wed, 6 Mar 2019 02:01:38 +0000 (05:01 +0300)]
Keep heading short

5 years agoMerge branch 'fix/escape-reserved-chars-in-filenames' into 'develop'
Haelwenn [Wed, 6 Mar 2019 01:45:17 +0000 (01:45 +0000)]
Merge branch 'fix/escape-reserved-chars-in-filenames' into 'develop'

Properly escape reserved URI charachters in upload urls

Closes #700

See merge request pleroma/pleroma!905

5 years agoAdd default config for masto_fe
Haelwenn (lanodan) Monnier [Wed, 6 Mar 2019 01:25:13 +0000 (02:25 +0100)]
Add default config for masto_fe

Related to: https://git.pleroma.social/pleroma/mastofe/merge_requests/22

5 years agoAdd handling of objects not in database
Karen Konou [Tue, 5 Mar 2019 22:15:22 +0000 (23:15 +0100)]
Add handling of objects not in database

5 years agoAdd tests for reserved char escaping in upload
rinpatch [Tue, 5 Mar 2019 16:28:58 +0000 (19:28 +0300)]
Add tests for reserved char escaping in upload

5 years agoProperly escape reserved URI charachters in upload urls
rinpatch [Tue, 5 Mar 2019 15:09:23 +0000 (18:09 +0300)]
Properly escape reserved URI charachters in upload urls

5 years agoMerge branch 'add-admin-to-node-info' into 'develop'
rinpatch [Tue, 5 Mar 2019 07:05:44 +0000 (07:05 +0000)]
Merge branch 'add-admin-to-node-info' into 'develop'

Include admins in nodeinfo

Closes #689

See merge request pleroma/pleroma!899

5 years agoWeb.RelMe: Fix having other values in rel attr
Haelwenn (lanodan) Monnier [Tue, 5 Mar 2019 01:03:44 +0000 (02:03 +0100)]
Web.RelMe: Fix having other values in rel attr

One example of this is Github which puts a rel="nofollow me" on the
profile link.

5 years agoPlugs.HTTPSecurityPlug: Add static_url to CSP's connect-src
Haelwenn (lanodan) Monnier [Tue, 5 Mar 2019 00:44:24 +0000 (01:44 +0100)]
Plugs.HTTPSecurityPlug: Add static_url to CSP's connect-src

Closes: https://git.pleroma.social/pleroma/pleroma/merge_requests/469
5 years agoMerge branch 'bugfix/rich-media-uri-validation' into 'develop'
Haelwenn [Tue, 5 Mar 2019 00:33:04 +0000 (00:33 +0000)]
Merge branch 'bugfix/rich-media-uri-validation' into 'develop'

rich media: don't crawl bogus URIs

See merge request pleroma/pleroma!864

5 years agoInclude admins in nodeinfo
eugenijm [Mon, 4 Mar 2019 19:14:04 +0000 (22:14 +0300)]
Include admins in nodeinfo

5 years agoTypo
Maxim Filippov [Mon, 4 Mar 2019 23:11:15 +0000 (02:11 +0300)]
Typo

5 years agorich media: helpers: rework validate_page_url()
William Pitcock [Mon, 4 Mar 2019 18:38:23 +0000 (18:38 +0000)]
rich media: helpers: rework validate_page_url()

5 years agolocal -> only_local
Maxim Filippov [Mon, 4 Mar 2019 18:36:47 +0000 (21:36 +0300)]
local -> only_local

5 years agoFormat & update docs
Maxim Filippov [Mon, 4 Mar 2019 18:33:53 +0000 (21:33 +0300)]
Format & update docs

5 years agohelpers: use AutoLinker to validate URIs as well as the other tests
William Pitcock [Sat, 2 Mar 2019 12:22:02 +0000 (12:22 +0000)]
helpers: use AutoLinker to validate URIs as well as the other tests

5 years agotests: add tests for rich media helper functions
William Pitcock [Sun, 24 Feb 2019 19:39:27 +0000 (19:39 +0000)]
tests: add tests for rich media helper functions

5 years agorich media: don't crawl bogus URIs
William Pitcock [Sun, 24 Feb 2019 19:13:46 +0000 (19:13 +0000)]
rich media: don't crawl bogus URIs

5 years agoMerge branch 'feature/add-status-text-to-notifications' into 'develop'
kaniini [Mon, 4 Mar 2019 18:29:13 +0000 (18:29 +0000)]
Merge branch 'feature/add-status-text-to-notifications' into 'develop'

Add status text to notifications (mentions and reposts)

Closes #696

See merge request pleroma/pleroma!897

5 years agoMerge search endpoint into /users
Maxim Filippov [Mon, 4 Mar 2019 18:26:32 +0000 (21:26 +0300)]
Merge search endpoint into /users

5 years agoRemove unused code
Maxim Filippov [Mon, 4 Mar 2019 17:49:20 +0000 (20:49 +0300)]
Remove unused code

5 years agoAdd status text to notifications (mentions and reposts)
Maxim Filippov [Mon, 4 Mar 2019 17:47:34 +0000 (20:47 +0300)]
Add status text to notifications (mentions and reposts)

5 years agoMerge branch 'fix/like-adressing' into 'develop'
kaniini [Mon, 4 Mar 2019 15:59:57 +0000 (15:59 +0000)]
Merge branch 'fix/like-adressing' into 'develop'

Stop adresssing like activities to actor's follower collection on non-public posts

See merge request pleroma/pleroma!896

5 years agoStop adresssing like activities to actor's follower collection on non-public posts
rinpatch [Mon, 4 Mar 2019 15:09:58 +0000 (18:09 +0300)]
Stop adresssing like activities to actor's follower collection on non-public posts

5 years agoMerge branch 'unify-follow' into 'develop'
kaniini [Mon, 4 Mar 2019 13:25:32 +0000 (13:25 +0000)]
Merge branch 'unify-follow' into 'develop'

Unify follow code with CommonAPI

Closes #690

See merge request pleroma/pleroma!889