akkoma
5 years agoMerge remote-tracking branch 'MAIN/develop' into feature/jobs
Egor Kislitsyn [Thu, 31 Jan 2019 08:07:49 +0000 (15:07 +0700)]
Merge remote-tracking branch 'MAIN/develop' into feature/jobs

5 years agoMerge branch 'add-wiki-reference-to-readme' into 'develop'
kaniini [Wed, 30 Jan 2019 21:38:15 +0000 (21:38 +0000)]
Merge branch 'add-wiki-reference-to-readme' into 'develop'

Add wiki reference to readme

See merge request pleroma/pleroma!744

5 years agoReformat to make markdownlint happy and other little typographic things
shibayashi [Wed, 30 Jan 2019 21:26:10 +0000 (22:26 +0100)]
Reformat to make markdownlint happy and other little typographic things

5 years agoAdd reference to Pleroma Wiki in the Readme
shibayashi [Wed, 30 Jan 2019 21:15:52 +0000 (22:15 +0100)]
Add reference to Pleroma Wiki in the Readme

5 years agoMerge branch 'multiple-hackney-pools' into 'develop'
lambda [Wed, 30 Jan 2019 20:18:05 +0000 (20:18 +0000)]
Merge branch 'multiple-hackney-pools' into 'develop'

Fix 4aff4efa typos

See merge request pleroma/pleroma!743

5 years agoMerge branch '2019-1-30-update-frontend' into 'develop'
lambda [Wed, 30 Jan 2019 20:17:22 +0000 (20:17 +0000)]
Merge branch '2019-1-30-update-frontend' into 'develop'

update frontend

See merge request pleroma/pleroma!742

5 years agoFix 4aff4efa typos
href [Wed, 30 Jan 2019 20:08:41 +0000 (21:08 +0100)]
Fix 4aff4efa typos

5 years agoupdate frontend
lain [Wed, 30 Jan 2019 20:04:58 +0000 (21:04 +0100)]
update frontend

5 years agoMerge branch 'multiple-hackney-pools' into 'develop'
kaniini [Wed, 30 Jan 2019 19:01:57 +0000 (19:01 +0000)]
Merge branch 'multiple-hackney-pools' into 'develop'

Use multiple hackney pools

See merge request pleroma/pleroma!739

5 years agoMerge branch 'better-following' into 'develop'
kaniini [Wed, 30 Jan 2019 18:50:00 +0000 (18:50 +0000)]
Merge branch 'better-following' into 'develop'

Use race condition free queries for following / unfollowing

See merge request pleroma/pleroma!740

5 years agoFix specs.
lain [Wed, 30 Jan 2019 18:45:31 +0000 (19:45 +0100)]
Fix specs.

5 years agoUse race-condition free mass follow.
lain [Wed, 30 Jan 2019 18:33:25 +0000 (19:33 +0100)]
Use race-condition free mass follow.

5 years agoUse race-condition free following method.
lain [Wed, 30 Jan 2019 18:21:04 +0000 (19:21 +0100)]
Use race-condition free following method.

5 years agotiny improve
Egor Kislitsyn [Wed, 30 Jan 2019 15:56:59 +0000 (22:56 +0700)]
tiny improve

5 years agoUse multiple hackney pools
href [Wed, 30 Jan 2019 11:38:38 +0000 (12:38 +0100)]
Use multiple hackney pools

* federation (ap, salmon)
* media (rich media, media proxy)
* upload (uploader proxy)

Each "part" will stop fighting others ones -- a huge federation outbound
could before make the media proxy fail to checkout a connection in time.

splitted media and uploaded media for the good reason than an upload
pool will have all connections to the same host (the uploader upstream).
it also has a longer default retention period for connections.

5 years agoMerge branch 'docs/fix-frontend_config' into 'develop'
Haelwenn [Wed, 30 Jan 2019 10:56:53 +0000 (10:56 +0000)]
Merge branch 'docs/fix-frontend_config' into 'develop'

docs/config.md: Fix syntax, pleroma_fe isn’t an atom

See merge request pleroma/pleroma!738

5 years agodocs/config.md: Fix syntax, pleroma_fe isn’t an atom
Haelwenn (lanodan) Monnier [Wed, 30 Jan 2019 10:51:12 +0000 (11:51 +0100)]
docs/config.md: Fix syntax, pleroma_fe isn’t an atom

5 years agoMerge branch 'docs/fix-frontend_config' into 'develop'
kaniini [Wed, 30 Jan 2019 10:38:41 +0000 (10:38 +0000)]
Merge branch 'docs/fix-frontend_config' into 'develop'

docs/config.md: Fix typo, provide an example key with camelCase and where to find more

See merge request pleroma/pleroma!737

5 years agodocs/config.md: Fix typo, provide an example key with camelCase and where to find...
Haelwenn (lanodan) Monnier [Wed, 30 Jan 2019 10:33:06 +0000 (11:33 +0100)]
docs/config.md: Fix typo, provide an example key with camelCase and where to find more

[ci skip]

5 years agoMerge branch 'docs/fix-pleroma-api-title' into 'develop'
lambda [Tue, 29 Jan 2019 19:24:30 +0000 (19:24 +0000)]
Merge branch 'docs/fix-pleroma-api-title' into 'develop'

docs/Pleroma-API.md: Fix ex_doc title by changing the first h1 to it

See merge request pleroma/pleroma!736

5 years agodocs/Pleroma-API.md: Fix ex_doc title by changing the first h1 to it
Haelwenn (lanodan) Monnier [Tue, 29 Jan 2019 18:11:34 +0000 (19:11 +0100)]
docs/Pleroma-API.md: Fix ex_doc title by changing the first h1 to it

[ci skip]

5 years agoMerge branch 'bugfix/fix-rejects' into 'develop'
kaniini [Tue, 29 Jan 2019 14:47:36 +0000 (14:47 +0000)]
Merge branch 'bugfix/fix-rejects' into 'develop'

follow request fixups

Closes #537

See merge request pleroma/pleroma!734

5 years agoMerge branch 'hj-happiness-improvement' into 'develop'
kaniini [Tue, 29 Jan 2019 13:54:10 +0000 (13:54 +0000)]
Merge branch 'hj-happiness-improvement' into 'develop'

New frontend configuration mechanism.

Closes #445

See merge request pleroma/pleroma!700

5 years agoactivitypub: utils: update the state of *any* pending follow relationship that matche...
William Pitcock [Tue, 29 Jan 2019 12:21:02 +0000 (12:21 +0000)]
activitypub: utils: update the state of *any* pending follow relationship that matches the actor and target

5 years agoactivitypub: transmogrifier: fix follow request rejections
William Pitcock [Tue, 29 Jan 2019 11:57:46 +0000 (11:57 +0000)]
activitypub: transmogrifier: fix follow request rejections

5 years agoMerge branch 'feature/rich-media-part-2-electric-boogaloo' into 'develop'
Haelwenn [Tue, 29 Jan 2019 05:11:08 +0000 (05:11 +0000)]
Merge branch 'feature/rich-media-part-2-electric-boogaloo' into 'develop'

Rich Media support, part 2.

See merge request pleroma/pleroma!719

5 years agorich media: oembed: return data in the same format as the other parsers
William Pitcock [Mon, 28 Jan 2019 21:07:36 +0000 (21:07 +0000)]
rich media: oembed: return data in the same format as the other parsers

5 years agorich media: kill some testsuite noise
William Pitcock [Mon, 28 Jan 2019 20:55:33 +0000 (20:55 +0000)]
rich media: kill some testsuite noise

5 years agorich media: parser: add some basic sanity checks on the returned data with pattern...
William Pitcock [Mon, 28 Jan 2019 20:31:43 +0000 (20:31 +0000)]
rich media: parser: add some basic sanity checks on the returned data with pattern matching

5 years agorich media: parser: cache negatives
William Pitcock [Mon, 28 Jan 2019 20:19:07 +0000 (20:19 +0000)]
rich media: parser: cache negatives

5 years agorich media: parser: add copyright header
William Pitcock [Mon, 28 Jan 2019 19:59:36 +0000 (19:59 +0000)]
rich media: parser: add copyright header

5 years agoadd spec back
Egor Kislitsyn [Mon, 28 Jan 2019 17:35:57 +0000 (00:35 +0700)]
add spec back

5 years agofix defaults
Egor Kislitsyn [Mon, 28 Jan 2019 17:33:08 +0000 (00:33 +0700)]
fix defaults

5 years agocleanup
Egor Kislitsyn [Mon, 28 Jan 2019 16:12:02 +0000 (23:12 +0700)]
cleanup

5 years agoadd a job queue
Egor Kislitsyn [Mon, 28 Jan 2019 15:17:17 +0000 (22:17 +0700)]
add a job queue

5 years agoMerge branch 'app-list-changes' into 'develop'
kaniini [Mon, 28 Jan 2019 14:31:03 +0000 (14:31 +0000)]
Merge branch 'app-list-changes' into 'develop'

App list changes: Separate into two categories, and drop Subway Tooter.

See merge request pleroma/pleroma!731

5 years agoApp list changes: Separate into two categories, and drop Subway Tooter.
scarlett [Mon, 28 Jan 2019 14:24:49 +0000 (14:24 +0000)]
App list changes: Separate into two categories, and drop Subway Tooter.

5 years agoPut deprecation warnings undre Pleroma.Config.
lain [Mon, 28 Jan 2019 13:39:54 +0000 (14:39 +0100)]
Put deprecation warnings undre Pleroma.Config.

5 years agoReturn new-style config if old-style config is set to false.
lain [Mon, 28 Jan 2019 12:07:12 +0000 (13:07 +0100)]
Return new-style config if old-style config is set to false.

This is in preparation for 1.0. We'll be able to switch the config to the new
mechanism on PleromaFE then as well.

5 years agoUpdate config.md
lain [Mon, 28 Jan 2019 12:06:28 +0000 (13:06 +0100)]
Update config.md

5 years agoDon't run warnings in a task.
lain [Mon, 28 Jan 2019 12:05:17 +0000 (13:05 +0100)]
Don't run warnings in a task.

5 years agoChange default bg image in new config.
lain [Mon, 28 Jan 2019 12:04:51 +0000 (13:04 +0100)]
Change default bg image in new config.

5 years agoMerge branch 'safe-render-activities' into 'develop'
Haelwenn [Mon, 28 Jan 2019 11:48:03 +0000 (11:48 +0000)]
Merge branch 'safe-render-activities' into 'develop'

remove unnecessary filter (re !723)

See merge request pleroma/pleroma!729

5 years agore f83bae7c: remove unnecessary filter
href [Mon, 28 Jan 2019 11:24:14 +0000 (12:24 +0100)]
re f83bae7c: remove unnecessary filter

5 years agoAdd deprecation warning mechanism.
lain [Mon, 28 Jan 2019 11:09:41 +0000 (12:09 +0100)]
Add deprecation warning mechanism.

5 years agoMerge branch 'oauth-login-failure-bug' into 'develop'
href [Mon, 28 Jan 2019 10:49:03 +0000 (10:49 +0000)]
Merge branch 'oauth-login-failure-bug' into 'develop'

Correctly handle invalid credentials on auth login.

Closes #407

See merge request pleroma/pleroma!728

5 years agoCorrectly handle invalid credentials on auth login.
lain [Mon, 28 Jan 2019 10:41:47 +0000 (11:41 +0100)]
Correctly handle invalid credentials on auth login.

Closes #407

5 years agoMerge branch 'patch-2' into 'develop'
Haelwenn [Mon, 28 Jan 2019 08:23:21 +0000 (08:23 +0000)]
Merge branch 'patch-2' into 'develop'

Update the openrc service's retry with the correct format

See merge request pleroma/pleroma!727

5 years agoUpdate the openrc service's retry with the correct format
vaartis [Mon, 28 Jan 2019 08:18:11 +0000 (08:18 +0000)]
Update the openrc service's retry with the correct format

5 years agomastodon api: card: force OGP images through mediaproxy
William Pitcock [Mon, 28 Jan 2019 06:42:27 +0000 (06:42 +0000)]
mastodon api: card: force OGP images through mediaproxy

5 years agotest: add status posting with OGP link preview test
William Pitcock [Mon, 28 Jan 2019 06:19:00 +0000 (06:19 +0000)]
test: add status posting with OGP link preview test

5 years agorich media: helpers: clean up unused aliases
William Pitcock [Mon, 28 Jan 2019 06:10:25 +0000 (06:10 +0000)]
rich media: helpers: clean up unused aliases

5 years agoactivitypub: prime OGP crawler cache when new messages are inserted into the database
William Pitcock [Mon, 28 Jan 2019 06:07:18 +0000 (06:07 +0000)]
activitypub: prime OGP crawler cache when new messages are inserted into the database

5 years agorich media: add helpers module, use instead of MastodonAPI module
William Pitcock [Mon, 28 Jan 2019 06:04:54 +0000 (06:04 +0000)]
rich media: add helpers module, use instead of MastodonAPI module

5 years agomastodon api: formatting
William Pitcock [Sun, 27 Jan 2019 12:39:20 +0000 (12:39 +0000)]
mastodon api: formatting

5 years agoAPI: kill /api/rich_media/parse endpoint
William Pitcock [Sun, 27 Jan 2019 12:34:49 +0000 (12:34 +0000)]
API: kill /api/rich_media/parse endpoint

5 years agotest: update twitterapi tests
William Pitcock [Sun, 27 Jan 2019 12:27:46 +0000 (12:27 +0000)]
test: update twitterapi tests

5 years agotwitter api: fix up activity representer
William Pitcock [Sun, 27 Jan 2019 12:27:37 +0000 (12:27 +0000)]
twitter api: fix up activity representer

5 years agotest: update mastodon status view tests
William Pitcock [Sun, 27 Jan 2019 12:21:51 +0000 (12:21 +0000)]
test: update mastodon status view tests

5 years agorich media: add try/rescue to ensure we catch parsing and fetching failures
William Pitcock [Sun, 27 Jan 2019 12:21:05 +0000 (12:21 +0000)]
rich media: add try/rescue to ensure we catch parsing and fetching failures

5 years agotwitter api: embed card in twitterapi posts
William Pitcock [Sun, 27 Jan 2019 12:16:08 +0000 (12:16 +0000)]
twitter api: embed card in twitterapi posts

5 years agomastodon api: embed card in status object
William Pitcock [Sun, 27 Jan 2019 12:15:41 +0000 (12:15 +0000)]
mastodon api: embed card in status object

5 years agomastodon api: factor out status card fetching, move status card rendering to statusvi...
William Pitcock [Sun, 27 Jan 2019 09:37:11 +0000 (09:37 +0000)]
mastodon api: factor out status card fetching, move status card rendering to statusview, add opengraph extended data

5 years agoMerge branch 'notice-404-to-fe' into 'develop'
rinpatch [Sun, 27 Jan 2019 22:01:20 +0000 (22:01 +0000)]
Merge branch 'notice-404-to-fe' into 'develop'

/notice/:id - send the FE index even if 404

See merge request pleroma/pleroma!725

5 years ago/notice/:id - send the FE index even if 404
href [Sun, 27 Jan 2019 21:51:50 +0000 (22:51 +0100)]
/notice/:id - send the FE index even if 404

this allows to open private activities by URL when you are logged in,
and to let the FE display a 404 page

5 years agoMerge branch 'safe-render-activities' into 'develop'
lambda [Sun, 27 Jan 2019 20:10:09 +0000 (20:10 +0000)]
Merge branch 'safe-render-activities' into 'develop'

Views: wrap activity rendering in a rescue

See merge request pleroma/pleroma!723

5 years agoMerge branch 'discard-invalid-likes' into 'develop'
kaniini [Sun, 27 Jan 2019 19:10:15 +0000 (19:10 +0000)]
Merge branch 'discard-invalid-likes' into 'develop'

Transmogrifier: fix incoming objects with invalid likes

See merge request pleroma/pleroma!724

5 years agoTransmogrifier: fix incoming objects with invalid likes
href [Sun, 27 Jan 2019 18:27:16 +0000 (19:27 +0100)]
Transmogrifier: fix incoming objects with invalid likes

5 years agoViews: wrap activity rendering in a rescue
href [Sun, 27 Jan 2019 18:15:35 +0000 (19:15 +0100)]
Views: wrap activity rendering in a rescue

this avoids complete timeline breakage when an activity fucks up
rendering.

5 years agoMerge branch 'hotfix/favorites-index' into 'develop'
kaniini [Sun, 27 Jan 2019 15:22:08 +0000 (15:22 +0000)]
Merge branch 'hotfix/favorites-index' into 'develop'

add activities likes index, fixes favorites API call

See merge request pleroma/pleroma!722

5 years agoMerge branch 'flake-random-worker-id' into 'develop'
kaniini [Sun, 27 Jan 2019 15:16:06 +0000 (15:16 +0000)]
Merge branch 'flake-random-worker-id' into 'develop'

Flake: random worker id

See merge request pleroma/pleroma!721

5 years agoadd activities likes index, fixes favorites API call
William Pitcock [Sun, 27 Jan 2019 15:15:33 +0000 (15:15 +0000)]
add activities likes index, fixes favorites API call

5 years agoFlake: random worker id
href [Sun, 27 Jan 2019 15:04:36 +0000 (16:04 +0100)]
Flake: random worker id

5 years agoMerge branch 'docs/emoji-endpoint-similarities' into 'develop'
rinpatch [Sun, 27 Jan 2019 14:28:51 +0000 (14:28 +0000)]
Merge branch 'docs/emoji-endpoint-similarities' into 'develop'

docs/Pleroma-API.md: Add note about emoji endpoints similarities

See merge request pleroma/pleroma!720

5 years agodocs/Pleroma-API.md: Add note about emoji endpoints similarities
Haelwenn (lanodan) Monnier [Sun, 27 Jan 2019 13:30:21 +0000 (14:30 +0100)]
docs/Pleroma-API.md: Add note about emoji endpoints similarities

[ci skip]

5 years agoMerge branch 'features/mastoapi-multi-hashtag' into 'develop'
kaniini [Sun, 27 Jan 2019 12:45:50 +0000 (12:45 +0000)]
Merge branch 'features/mastoapi-multi-hashtag' into 'develop'

MastodonAPI multi-hashtag

See merge request pleroma/pleroma!652

5 years agoMerge branch 'features/masto-account-view-rights' into 'develop'
Haelwenn [Sun, 27 Jan 2019 09:45:51 +0000 (09:45 +0000)]
Merge branch 'features/masto-account-view-rights' into 'develop'

Web.MastodonAPI.AccountView: Add is_moderator and is_admin

Closes #557

See merge request pleroma/pleroma!718

5 years agoWeb.MastodonAPI.AccountView: Add is_moderator and is_admin
Haelwenn (lanodan) Monnier [Sun, 27 Jan 2019 09:21:13 +0000 (10:21 +0100)]
Web.MastodonAPI.AccountView: Add is_moderator and is_admin

Closes: https://git.pleroma.social/pleroma/pleroma/issues/557
5 years agoMerge branch 'hardening/mastodon-rich-media' into 'develop'
Haelwenn [Sat, 26 Jan 2019 17:30:51 +0000 (17:30 +0000)]
Merge branch 'hardening/mastodon-rich-media' into 'develop'

rich media: minor hardening

See merge request pleroma/pleroma!717

5 years agoMerge branch 'webpush-endpoint-size' into 'develop'
kaniini [Sat, 26 Jan 2019 17:27:14 +0000 (17:27 +0000)]
Merge branch 'webpush-endpoint-size' into 'develop'

Change webpush endpoint to unlimited varchar

Closes #552

See merge request pleroma/pleroma!716

5 years agorich media: gracefully handle fetching nil URIs
William Pitcock [Sat, 26 Jan 2019 16:26:11 +0000 (16:26 +0000)]
rich media: gracefully handle fetching nil URIs

5 years agoChange webpush endpoint to unlimited varchar
href [Sat, 26 Jan 2019 16:17:37 +0000 (17:17 +0100)]
Change webpush endpoint to unlimited varchar

Fixes #552

5 years agoMerge branch 'flake-from-int' into 'develop'
kaniini [Sat, 26 Jan 2019 16:17:50 +0000 (16:17 +0000)]
Merge branch 'flake-from-int' into 'develop'

Flake: support integers in from_string/1

See merge request pleroma/pleroma!715

5 years agoFlake: support integers in from_string/1
href [Sat, 26 Jan 2019 15:58:23 +0000 (16:58 +0100)]
Flake: support integers in from_string/1

Some previously issued stateless tokens have integer ids in them.

5 years agoMerge branch 'join-in-preloads' into 'develop'
kaniini [Sat, 26 Jan 2019 15:57:02 +0000 (15:57 +0000)]
Merge branch 'join-in-preloads' into 'develop'

Join on preloads to avoid N+1 queries

See merge request pleroma/pleroma!714

5 years agoMerge branch 'features/mastoapi-cards' into 'develop'
kaniini [Sat, 26 Jan 2019 15:47:52 +0000 (15:47 +0000)]
Merge branch 'features/mastoapi-cards' into 'develop'

MastoAPI: Add Rich-Media support

See merge request pleroma/pleroma!664

5 years agoWeb.MastodonAPI.MastodonAPIController: tag+any bookmark params in a array and flatten it
Haelwenn (lanodan) Monnier [Sat, 26 Jan 2019 15:46:20 +0000 (16:46 +0100)]
Web.MastodonAPI.MastodonAPIController: tag+any bookmark params in a array and flatten it

5 years agomastodon api: use OGP uri instead of page_url for deducing domain name, fix test
William Pitcock [Sat, 26 Jan 2019 15:20:27 +0000 (15:20 +0000)]
mastodon api: use OGP uri instead of page_url for deducing domain name, fix test

5 years agomastodon api: use HTML.extract_first_external_url()
William Pitcock [Sat, 26 Jan 2019 14:56:14 +0000 (14:56 +0000)]
mastodon api: use HTML.extract_first_external_url()

5 years agoJoin on preloads to avoid N+1 queries
href [Sat, 26 Jan 2019 14:55:53 +0000 (15:55 +0100)]
Join on preloads to avoid N+1 queries

5 years agohtml: add utility function to extract first URL from an object and cache the result
William Pitcock [Sat, 26 Jan 2019 14:55:12 +0000 (14:55 +0000)]
html: add utility function to extract first URL from an object and cache the result

5 years agomastodon api: provider_name setting is required too on the card
William Pitcock [Sat, 26 Jan 2019 14:47:32 +0000 (14:47 +0000)]
mastodon api: provider_name setting is required too on the card

5 years agoWeb.MastodonAPI.MastodonAPIController: generic get_status_card/1 function for MastoAP...
Haelwenn (lanodan) Monnier [Sun, 20 Jan 2019 23:53:41 +0000 (00:53 +0100)]
Web.MastodonAPI.MastodonAPIController: generic get_status_card/1 function for MastoAPI 2.6.x

Mastodon API 2.6.x added a card key to the Status object so the Card can be shown in the timeline without an extra request at each status.

5 years agoWeb.MastodonAPI.MastodonAPIController: Add Rich-Media support
Haelwenn (lanodan) Monnier [Sun, 13 Jan 2019 23:06:55 +0000 (00:06 +0100)]
Web.MastodonAPI.MastodonAPIController: Add Rich-Media support

5 years agoMove definitions of RichMedia fixtures to test/support/http_request_mock.ex
Haelwenn (lanodan) Monnier [Sun, 13 Jan 2019 23:05:45 +0000 (00:05 +0100)]
Move definitions of RichMedia fixtures to test/support/http_request_mock.ex

5 years agoMerge branch 'documentation/mastalab' into 'develop'
kaniini [Sat, 26 Jan 2019 14:10:42 +0000 (14:10 +0000)]
Merge branch 'documentation/mastalab' into 'develop'

README: Mastalab officially supports Pleroma.

See merge request pleroma/pleroma!713

5 years agoREADME: Mastalab officially supports Pleroma.
William Pitcock [Sat, 26 Jan 2019 14:10:26 +0000 (14:10 +0000)]
README: Mastalab officially supports Pleroma.

5 years agoMerge branch 'bugfix/content_nil_lenght_check' into 'develop'
kaniini [Sat, 26 Jan 2019 13:41:18 +0000 (13:41 +0000)]
Merge branch 'bugfix/content_nil_lenght_check' into 'develop'

Web.ActivityPub.ActivityPub: Fix check_remote_limit/1 against activities with content: nil

See merge request pleroma/pleroma!711

5 years agoWeb.MastodonAPI.MastodonAPIControllerTest: Update for difference between all and...
Haelwenn (lanodan) Monnier [Tue, 22 Jan 2019 14:42:46 +0000 (15:42 +0100)]
Web.MastodonAPI.MastodonAPIControllerTest: Update for difference between all and any parameters

5 years agoFix the logic in multi-hashtag TLs
Haelwenn (lanodan) Monnier [Thu, 10 Jan 2019 15:44:28 +0000 (16:44 +0100)]
Fix the logic in multi-hashtag TLs