akkoma
5 years agoRefactoring functions for dealing with oauth scopes.
Maksim [Wed, 8 May 2019 10:52:13 +0000 (10:52 +0000)]
Refactoring functions for dealing with oauth scopes.

5 years agoMerge branch 'refactor/preload-bookmarks-with-activities' into 'develop'
kaniini [Tue, 7 May 2019 19:37:41 +0000 (19:37 +0000)]
Merge branch 'refactor/preload-bookmarks-with-activities' into 'develop'

Optimize bookmarks by preloading them with activities

Closes #861

See merge request pleroma/pleroma!1121

5 years agotwitterapi: use order constraint to force descending order
William Pitcock [Tue, 7 May 2019 19:30:51 +0000 (19:30 +0000)]
twitterapi: use order constraint to force descending order

5 years agoactivitypub: add optional order constraint to timeline query builder
William Pitcock [Tue, 7 May 2019 19:30:27 +0000 (19:30 +0000)]
activitypub: add optional order constraint to timeline query builder

5 years agoRemove `bookmarks` assoc and add a fake `bookmark` assoc instead
rinpatch [Tue, 7 May 2019 15:00:50 +0000 (18:00 +0300)]
Remove `bookmarks` assoc and add a fake `bookmark` assoc instead

5 years agoUse with_preloaded_bookmark in create_by_object_ap_id_with_object
rinpatch [Sat, 4 May 2019 10:50:39 +0000 (13:50 +0300)]
Use with_preloaded_bookmark in create_by_object_ap_id_with_object

5 years ago- Actually use preloaded bookmarks in views
rinpatch [Sat, 4 May 2019 10:42:54 +0000 (13:42 +0300)]
- Actually use preloaded bookmarks in views
- Preload bookmarks in bookmark timeline
- Rework bookmark preload tests

5 years agoPreload bookmarks wherever the object is preloaded
rinpatch [Sat, 4 May 2019 09:46:42 +0000 (12:46 +0300)]
Preload bookmarks wherever the object is preloaded

5 years agoRemove bookmarks assoc
rinpatch [Fri, 3 May 2019 19:15:47 +0000 (22:15 +0300)]
Remove bookmarks assoc

5 years agoMerge branch 'docs/MRF-modules' into 'develop'
kaniini [Tue, 7 May 2019 16:15:27 +0000 (16:15 +0000)]
Merge branch 'docs/MRF-modules' into 'develop'

Documentation: MRF Modules

See merge request pleroma/pleroma!1122

5 years agocontainment: remove pointless moduledoc line
William Pitcock [Tue, 7 May 2019 16:11:10 +0000 (16:11 +0000)]
containment: remove pointless moduledoc line

5 years agoMerge branch 'conversations_three' into 'develop'
lambda [Tue, 7 May 2019 14:43:21 +0000 (14:43 +0000)]
Merge branch 'conversations_three' into 'develop'

Conversations once more.

See merge request pleroma/pleroma!1119

5 years agoMerge branch 'unused-config-parameter' into 'develop'
rinpatch [Tue, 7 May 2019 02:35:31 +0000 (02:35 +0000)]
Merge branch 'unused-config-parameter' into 'develop'

unused config paramater

See merge request pleroma/pleroma!1124

5 years agounused config paramater
Alex S [Tue, 7 May 2019 02:07:06 +0000 (09:07 +0700)]
unused config paramater

5 years agoMerge branch 'fix/ex_doc-source-links' into 'develop'
rinpatch [Tue, 7 May 2019 00:32:07 +0000 (00:32 +0000)]
Merge branch 'fix/ex_doc-source-links' into 'develop'

Fix/ex_doc source links

See merge request pleroma/pleroma!1123

5 years agoFix/ex_doc source links
xse [Tue, 7 May 2019 00:32:07 +0000 (00:32 +0000)]
Fix/ex_doc source links

5 years agoMerge branch 'issue_800' into 'develop'
lambda [Mon, 6 May 2019 17:51:03 +0000 (17:51 +0000)]
Merge branch 'issue_800' into 'develop'

[#800] added ability renew access_token by refresh_token

See merge request pleroma/pleroma!1045

5 years agofix format
Maksim [Mon, 6 May 2019 17:51:03 +0000 (17:51 +0000)]
fix format

Modified-by: Maksim Pechnikov <parallel588@gmail.com>
5 years agoMerge branch 'feature/bbs' into 'develop'
lambda [Mon, 6 May 2019 17:17:03 +0000 (17:17 +0000)]
Merge branch 'feature/bbs' into 'develop'

BBS / SSH

See merge request pleroma/pleroma!997

5 years agoMerge branch 'feature/845-improve-status-deletion' into 'develop'
lambda [Mon, 6 May 2019 16:45:22 +0000 (16:45 +0000)]
Merge branch 'feature/845-improve-status-deletion' into 'develop'

Improve status deletion

Closes #845

See merge request pleroma/pleroma!1104

5 years agoMerge branch 'develop' of https://git.pleroma.social/pleroma/pleroma into feature...
Alexander Strizhakov [Mon, 6 May 2019 16:45:22 +0000 (16:45 +0000)]
Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma into feature/845-improve-status-deletion

5 years agoRemove H1 in @moduledoc
Haelwenn (lanodan) Monnier [Mon, 6 May 2019 02:47:04 +0000 (04:47 +0200)]
Remove H1 in @moduledoc

5 years agomrf/tag_policy.ex: Add some documentation
Haelwenn (lanodan) Monnier [Mon, 6 May 2019 01:43:11 +0000 (03:43 +0200)]
mrf/tag_policy.ex: Add some documentation

mrf_tag:disable-remote-subscription exact way of working is quite
unclear to me. Is it the requester that is denied if they have a tag,
or is it the requestee if they have one?

5 years agoAdd short documentation on every MRF Policy
Haelwenn (lanodan) Monnier [Mon, 6 May 2019 02:28:04 +0000 (04:28 +0200)]
Add short documentation on every MRF Policy

5 years agoBBS: Credo fixes.
lain [Sat, 4 May 2019 13:47:50 +0000 (15:47 +0200)]
BBS: Credo fixes.

5 years agoBBS: Fix tests.
lain [Sat, 4 May 2019 13:36:48 +0000 (15:36 +0200)]
BBS: Fix tests.

5 years agoBBS: Use cached user fetcher.
lain [Sat, 4 May 2019 13:08:07 +0000 (15:08 +0200)]
BBS: Use cached user fetcher.

5 years agoBBS: small fixes.
lain [Sat, 4 May 2019 13:06:18 +0000 (15:06 +0200)]
BBS: small fixes.

5 years agoMerge remote-tracking branch 'origin/develop' into feature/bbs
lain [Sat, 4 May 2019 13:00:45 +0000 (15:00 +0200)]
Merge remote-tracking branch 'origin/develop' into feature/bbs

5 years agoMerge branch 'fix/embeded-relationship-in-follows' into 'develop'
rinpatch [Fri, 3 May 2019 20:36:13 +0000 (20:36 +0000)]
Merge branch 'fix/embeded-relationship-in-follows' into 'develop'

Fix embeded relationships in Mastodon API

See merge request pleroma/pleroma!1118

5 years agoMerge branch 'fix-search-speed' into 'develop'
rinpatch [Fri, 3 May 2019 18:35:02 +0000 (18:35 +0000)]
Merge branch 'fix-search-speed' into 'develop'

Search: Add fts index on objects table.

See merge request pleroma/pleroma!1120

5 years agoJust have Benchee in all environments.
lain [Fri, 3 May 2019 18:28:06 +0000 (20:28 +0200)]
Just have Benchee in all environments.

5 years agoMix: Also have benchee in test.
lain [Fri, 3 May 2019 17:42:49 +0000 (19:42 +0200)]
Mix: Also have benchee in test.

5 years agoMerge branch 'bugfix/emoji-size' into 'develop'
lambda [Fri, 3 May 2019 17:26:39 +0000 (17:26 +0000)]
Merge branch 'bugfix/emoji-size' into 'develop'

Bugfix: emoji size in profile

Closes #269

See merge request pleroma/pleroma!792

5 years agoSearch: Add fts index on objects table.
lain [Fri, 3 May 2019 17:15:55 +0000 (19:15 +0200)]
Search: Add fts index on objects table.

5 years agoMastoAPI: profile update with emoji_map
Haelwenn (lanodan) Monnier [Fri, 22 Feb 2019 23:57:42 +0000 (00:57 +0100)]
MastoAPI: profile update with emoji_map

5 years agoTwitterAPI: profile update with emoji_map
Haelwenn (lanodan) Monnier [Fri, 22 Feb 2019 23:09:11 +0000 (00:09 +0100)]
TwitterAPI: profile update with emoji_map

5 years agoWeb.TwitterAPI.UserView: Also view local user emojis
Haelwenn (lanodan) Monnier [Fri, 22 Feb 2019 21:35:47 +0000 (22:35 +0100)]
Web.TwitterAPI.UserView: Also view local user emojis

5 years agoformatter.ex: Add get_emoji_map/1
Haelwenn (lanodan) Monnier [Tue, 12 Feb 2019 13:59:34 +0000 (14:59 +0100)]
formatter.ex: Add get_emoji_map/1

5 years agoPleroma.User: remove emojify on parse_bio
Haelwenn (lanodan) Monnier [Mon, 11 Feb 2019 22:47:32 +0000 (23:47 +0100)]
Pleroma.User: remove emojify on parse_bio

5 years agoPleroma.Formatter: width/height to class=emoji
Haelwenn (lanodan) Monnier [Thu, 7 Feb 2019 15:41:20 +0000 (16:41 +0100)]
Pleroma.Formatter: width/height to class=emoji

5 years agoCredo fixes.
lain [Fri, 3 May 2019 11:53:17 +0000 (13:53 +0200)]
Credo fixes.

5 years agoMerge branch 'fix/replace-ws' into 'develop'
lambda [Fri, 3 May 2019 11:45:04 +0000 (11:45 +0000)]
Merge branch 'fix/replace-ws' into 'develop'

Standardize construction of websocket URL

See merge request pleroma/pleroma!1115

5 years agoStandardize construction of websocket URL
feld [Fri, 3 May 2019 11:45:04 +0000 (11:45 +0000)]
Standardize construction of websocket URL

This follows up on the change made in d747bd98

5 years agoMastodonApi: Bump api level.
lain [Fri, 3 May 2019 11:40:43 +0000 (13:40 +0200)]
MastodonApi: Bump api level.

5 years agoStreamer: Stream out Conversations/Participations.
lain [Fri, 3 May 2019 11:39:14 +0000 (13:39 +0200)]
Streamer: Stream out Conversations/Participations.

5 years agoFix embeded relationships in Mastodon API
rinpatch [Thu, 2 May 2019 19:19:14 +0000 (22:19 +0300)]
Fix embeded relationships in Mastodon API

Currently some endpoints render accounts without for user resulting in
embedded relationship being empty. It causes bugs in followers/following
tab in pleroma-fe but I fixed it for other endpoints as well just in
case

5 years agoMerge branch 'iss-849' into 'develop'
lambda [Thu, 2 May 2019 14:17:17 +0000 (14:17 +0000)]
Merge branch 'iss-849' into 'develop'

Parse access_token from body parameters and URL parameters

See merge request pleroma/pleroma!1103

5 years agoAdd oauth plug tests for url and body parameters
AkiraFukushima [Thu, 2 May 2019 13:25:21 +0000 (22:25 +0900)]
Add oauth plug tests for url and body parameters

5 years agofix: Add mix deps.get before unit-testing
AkiraFukushima [Mon, 29 Apr 2019 14:53:48 +0000 (23:53 +0900)]
fix: Add mix deps.get before unit-testing

5 years agoParse access_token from body parameters and URL parameters
AkiraFukushima [Thu, 2 May 2019 12:04:00 +0000 (21:04 +0900)]
Parse access_token from body parameters and URL parameters

5 years agoFix tests
Roman Chvanikov [Sun, 28 Apr 2019 20:44:04 +0000 (03:44 +0700)]
Fix tests

5 years agoMerge remote-tracking branch 'origin/develop' into conversations_three
lain [Wed, 1 May 2019 16:40:41 +0000 (18:40 +0200)]
Merge remote-tracking branch 'origin/develop' into conversations_three

5 years agoMerge branch 'support/oauth' into 'develop'
lambda [Wed, 1 May 2019 13:28:04 +0000 (13:28 +0000)]
Merge branch 'support/oauth' into 'develop'

Refactored Pleroma.Web.Auth.Authenticator

See merge request pleroma/pleroma!1108

5 years agoRefactored Pleroma.Web.Auth.Authenticator
Maksim [Wed, 1 May 2019 13:28:04 +0000 (13:28 +0000)]
Refactored Pleroma.Web.Auth.Authenticator

5 years agoMerge branch 'fix/remove-redundant-ensure-scrubbed-html' into 'develop'
rinpatch [Wed, 1 May 2019 11:02:08 +0000 (11:02 +0000)]
Merge branch 'fix/remove-redundant-ensure-scrubbed-html' into 'develop'

Remove redundant ensure_scrubbed_html

See merge request pleroma/pleroma!1114

5 years agoRemove redundant ensure_scrubbed_html
rinpatch [Wed, 1 May 2019 10:52:44 +0000 (13:52 +0300)]
Remove redundant ensure_scrubbed_html

It is never used as handling for fake and non-fake activities was merged
into one function above it

5 years agoMerge branch 'features/download-mastofe-build' into 'develop'
lambda [Wed, 1 May 2019 10:48:30 +0000 (10:48 +0000)]
Merge branch 'features/download-mastofe-build' into 'develop'

installation/download-mastofe-build.sh: Add mastofe CI-artifacts download

See merge request pleroma/pleroma!1052

5 years agoMerge branch 'bugfix/web-notification-special-char' into 'develop'
lambda [Wed, 1 May 2019 10:45:32 +0000 (10:45 +0000)]
Merge branch 'bugfix/web-notification-special-char' into 'develop'

fix the web push notification with special char for status created

See merge request pleroma/pleroma!1092

5 years agoMerge branch 'harmonize_return_types_in_user_module' into 'develop'
lambda [Wed, 1 May 2019 10:41:00 +0000 (10:41 +0000)]
Merge branch 'harmonize_return_types_in_user_module' into 'develop'

Harmonize return types in user module

Closes #718

See merge request pleroma/pleroma!1112

5 years agoMerge branch 'docs/fix-config.md' into 'develop'
rinpatch [Wed, 1 May 2019 09:16:25 +0000 (09:16 +0000)]
Merge branch 'docs/fix-config.md' into 'develop'

[docs/config.md]Fix syntax highlighting + clarify :frontend_configuration

See merge request pleroma/pleroma!1110

5 years agoMerge branch 'update_auto_linker' into 'develop'
rinpatch [Wed, 1 May 2019 09:14:10 +0000 (09:14 +0000)]
Merge branch 'update_auto_linker' into 'develop'

Update `auto_linker`

See merge request pleroma/pleroma!1111

5 years agotest fixes
Alex S [Wed, 1 May 2019 09:09:53 +0000 (16:09 +0700)]
test fixes

5 years agoUpdate `auto_linker`
Egor Kislitsyn [Wed, 1 May 2019 08:18:12 +0000 (15:18 +0700)]
Update `auto_linker`

5 years agoMerging with develop
Alex S [Wed, 1 May 2019 05:29:33 +0000 (12:29 +0700)]
Merging with develop

Conflicts:
lib/pleroma/web/activity_pub/transmogrifier.ex
lib/pleroma/user.ex

5 years agoFix syntax highlighting + clarify :frontend_configuration
xse [Tue, 30 Apr 2019 23:26:14 +0000 (01:26 +0200)]
Fix syntax highlighting + clarify :frontend_configuration

5 years agoadd scrubber for html special char
Sachin Joshi [Tue, 30 Apr 2019 19:52:17 +0000 (01:37 +0545)]
add scrubber for html special char

5 years agoMerge branch 'develop' into bugfix/web-notification-special-char
Sachin Joshi [Tue, 30 Apr 2019 18:36:30 +0000 (00:21 +0545)]
Merge branch 'develop' into bugfix/web-notification-special-char

5 years agoMerge branch 'fix/stream_out-normalize-only-creates' into 'develop'
rinpatch [Tue, 30 Apr 2019 17:31:48 +0000 (17:31 +0000)]
Merge branch 'fix/stream_out-normalize-only-creates' into 'develop'

Do not normalize objects in stream_out unless the activity type is Create

See merge request pleroma/pleroma!1109

5 years agoDo not normalize objects in stream_out unless the activity type is
rinpatch [Tue, 30 Apr 2019 17:21:28 +0000 (20:21 +0300)]
Do not normalize objects in stream_out unless the activity type is
Create

Saves quite a bit of time with delete activities because they would
always query the db

5 years agoMerge branch 'hotfix/migrateoldbookmarks-crashing-on-deleted-activities' into 'develop'
rinpatch [Mon, 29 Apr 2019 18:33:06 +0000 (18:33 +0000)]
Merge branch 'hotfix/migrateoldbookmarks-crashing-on-deleted-activities' into 'develop'

Fix MigrateOldBookmarks migration crashing on deleted activities

See merge request pleroma/pleroma!1106

5 years agoFix MigrateOldBookmarks migration crashing on deleted activities
rinpatch [Mon, 29 Apr 2019 18:25:30 +0000 (21:25 +0300)]
Fix MigrateOldBookmarks migration crashing on deleted activities

5 years agoMerge branch 'fix-webpush' into 'develop'
rinpatch [Mon, 29 Apr 2019 16:24:33 +0000 (16:24 +0000)]
Merge branch 'fix-webpush' into 'develop'

WebPush: Use Object.normalize, rewrite tests so they test reality.

See merge request pleroma/pleroma!1105

5 years agoWebPush: Use Object.normalize, rewrite tests so they test reality.
lain [Mon, 29 Apr 2019 16:15:30 +0000 (18:15 +0200)]
WebPush: Use Object.normalize, rewrite tests so they test reality.

5 years agoMerge branch 'fix/add-default-scope-mastoapi' into 'develop'
rinpatch [Mon, 29 Apr 2019 06:45:18 +0000 (06:45 +0000)]
Merge branch 'fix/add-default-scope-mastoapi' into 'develop'

Add default_scope to /api/v1/update_credentials

See merge request pleroma/pleroma!1100

5 years agoMerge branch 'fix/uploads-folder-issues' into 'develop'
kaniini [Sun, 28 Apr 2019 23:05:50 +0000 (23:05 +0000)]
Merge branch 'fix/uploads-folder-issues' into 'develop'

fix issues with the uploads directory

See merge request pleroma/pleroma!1101

5 years agoMerge branch 'regression/rights-only-for-admin' into 'develop'
kaniini [Sun, 28 Apr 2019 23:05:14 +0000 (23:05 +0000)]
Merge branch 'regression/rights-only-for-admin' into 'develop'

Fix `rights` in TwitterAPI's user entity being present only for Admins/Moderators

See merge request pleroma/pleroma!1102

5 years agoFix `rights` in TwitterAPI's user entity being present only for
rinpatch [Sun, 28 Apr 2019 16:42:43 +0000 (19:42 +0300)]
Fix `rights` in TwitterAPI's user entity being present only for
Admins/Moderators

In !1093 I reused `maybe_with_role` for `rights` object, however I
missed that `maybe_with_role` is called only for admins/moderators.

5 years agofix issues with the uploads directory
xse [Sun, 28 Apr 2019 04:43:00 +0000 (06:43 +0200)]
fix issues with the uploads directory

5 years agoMerge branch 'fix/bookmark-depend-on-embeded-object' into 'develop'
kaniini [Sun, 28 Apr 2019 00:21:32 +0000 (00:21 +0000)]
Merge branch 'fix/bookmark-depend-on-embeded-object' into 'develop'

Fix bookmarks depending on embeded object and move checking if the status is bookmarked to SQL

See merge request pleroma/pleroma!1099

5 years agoAdd default_scope to /api/v1/update_credentials
rinpatch [Sat, 27 Apr 2019 20:55:54 +0000 (23:55 +0300)]
Add default_scope to /api/v1/update_credentials

5 years agoFix bookmarks depending on embeded object and move checking if the
rinpatch [Sat, 27 Apr 2019 20:06:46 +0000 (23:06 +0300)]
Fix bookmarks depending on embeded object and move checking if the
status is bookmarked to SQL

5 years agoMerge branch 'feature/bbcode' into 'develop'
kaniini [Sat, 27 Apr 2019 07:44:24 +0000 (07:44 +0000)]
Merge branch 'feature/bbcode' into 'develop'

BBCode support (backend)

See merge request pleroma/pleroma!1097

5 years agoMerge branch 'update/pleroma-fe-20190426' into 'develop'
kaniini [Sat, 27 Apr 2019 07:42:01 +0000 (07:42 +0000)]
Merge branch 'update/pleroma-fe-20190426' into 'develop'

update pleroma frontend

See merge request pleroma/pleroma!1098

5 years agoupdate pleroma frontend
William Pitcock [Sat, 27 Apr 2019 07:34:59 +0000 (07:34 +0000)]
update pleroma frontend

5 years agotests: fix up for changed bbcode library output and verify html is properly escaped
William Pitcock [Fri, 26 Apr 2019 22:38:56 +0000 (22:38 +0000)]
tests: fix up for changed bbcode library output and verify html is properly escaped

5 years agoadd support for bbcode
William Pitcock [Fri, 26 Apr 2019 10:17:57 +0000 (10:17 +0000)]
add support for bbcode

5 years agomix: add bbcode dependency
William Pitcock [Fri, 26 Apr 2019 09:22:26 +0000 (09:22 +0000)]
mix: add bbcode dependency

5 years agoMerge branch 'feature/807-bookmark-endpoint-extension' into 'develop'
lambda [Fri, 26 Apr 2019 11:59:47 +0000 (11:59 +0000)]
Merge branch 'feature/807-bookmark-endpoint-extension' into 'develop'

Feature/807 bookmark endpoint extension

Closes #807

See merge request pleroma/pleroma!1059

5 years agoMerge branch 'feature/mastoapi-new-config' into 'develop'
kaniini [Fri, 26 Apr 2019 02:41:35 +0000 (02:41 +0000)]
Merge branch 'feature/mastoapi-new-config' into 'develop'

Fix leaking private configuration parameters in Mastodon and Twitter APIs, and add new configuration parameters to Mastodon API

This patch:
- Fixes `rights` in TwitterAPI ignoring `show_role`
- Fixes exposing default scope of the user to anyone in Mastodon API
- Extends Mastodon API to be able to show and set `no_rich_text`, `default_scope`, `hide_follows`, `hide_followers`, `hide_favorites` (requested by the FE in #674)

Sorry in advance for 500 line one commit diff, I should have split it up to separate MRs

See merge request pleroma/pleroma!1093

5 years agoMerge branch 'chore/update-changelog' into 'develop'
kaniini [Thu, 25 Apr 2019 23:35:13 +0000 (23:35 +0000)]
Merge branch 'chore/update-changelog' into 'develop'

update Changelog

See merge request pleroma/pleroma!1096

5 years agoupdate Changelog
William Pitcock [Thu, 25 Apr 2019 23:27:38 +0000 (23:27 +0000)]
update Changelog

5 years agoMerge branch 'feature/mediaproxy-whitelist' into 'develop'
kaniini [Thu, 25 Apr 2019 23:23:27 +0000 (23:23 +0000)]
Merge branch 'feature/mediaproxy-whitelist' into 'develop'

Add mediaproxy whitelist capability

Closes #837

See merge request pleroma/pleroma!1095

5 years agoAdd mediaproxy whitelist capability
Mark Felder [Thu, 25 Apr 2019 23:11:47 +0000 (18:11 -0500)]
Add mediaproxy whitelist capability

5 years agoMerge branch 'feature/auto-reject-follow-requests-blocked' into 'develop'
Haelwenn [Thu, 25 Apr 2019 09:47:42 +0000 (09:47 +0000)]
Merge branch 'feature/auto-reject-follow-requests-blocked' into 'develop'

activitypub: transmogrifier: send reject follow if following does not succeed

See merge request pleroma/pleroma!1094

5 years agoMove settings to Source subentity
rinpatch [Thu, 25 Apr 2019 06:14:35 +0000 (09:14 +0300)]
Move settings to Source subentity

5 years agotest fixes
Alex S [Thu, 25 Apr 2019 07:09:57 +0000 (14:09 +0700)]
test fixes

5 years agofixes for tests
Alex S [Mon, 22 Apr 2019 09:16:19 +0000 (16:16 +0700)]
fixes for tests

5 years agomigration without using old field name
Alex S [Mon, 22 Apr 2019 05:45:45 +0000 (12:45 +0700)]
migration without using old field name

removing old field from db, after bookmarks migration

5 years agounused
Alex S [Sat, 20 Apr 2019 07:41:42 +0000 (14:41 +0700)]
unused