Ivan Tashkinov [Thu, 18 Feb 2021 18:03:06 +0000 (21:03 +0300)]
[#3213] Experimental / debug feature: `database: [improved_hashtag_timeline: :preselect_hashtag_ids]`.
Ivan Tashkinov [Thu, 18 Feb 2021 17:40:10 +0000 (20:40 +0300)]
[#3213] HashtagsTableMigrator: fault rate allowance to enable the feature (defaults to 1%), counting of affected objects, misc. tweaks.
Alexander Strizhakov [Thu, 11 Feb 2021 10:01:48 +0000 (13:01 +0300)]
expires_in in scheduled status params
rinpatch [Thu, 18 Feb 2021 09:54:59 +0000 (09:54 +0000)]
Merge branch 'fix/chats-no-unread-in-openapi' into 'develop'
ChatMessage schema: Add `unread` property
See merge request pleroma/pleroma!3323
Haelwenn [Wed, 17 Feb 2021 22:31:11 +0000 (22:31 +0000)]
Merge branch 'feat/enforce-admin-scope-unconditionally' into 'develop'
Remove `:auth, :enforce_oauth_admin_scope_usage`
See merge request pleroma/pleroma!3327
rinpatch [Wed, 17 Feb 2021 18:37:23 +0000 (21:37 +0300)]
OAuthScopesPlug: remove transform_scopes in favor of explicit admin scope definitions
Transforming scopes is no longer necessary since we are dropping
support for accessing admin api without `admin:` prefix in scopes.
rinpatch [Wed, 17 Feb 2021 17:56:13 +0000 (20:56 +0300)]
OpenAPI: Add `admin:` scope prefix to admin operations
Also splits "Emoji packs" to two categories: "Emoji pack administration"
and "Emoji packs"
rinpatch [Wed, 17 Feb 2021 17:47:38 +0000 (20:47 +0300)]
Remove `:auth, :enforce_oauth_admin_scope_usage`
`admin` scope has been required by default for more than a year now
and all apps that use the API seems to request a proper scope by now.
Haelwenn (lanodan) Monnier [Mon, 25 Jan 2021 19:15:33 +0000 (20:15 +0100)]
Enhance reports in Pleroma API: index, show
rinpatch [Wed, 17 Feb 2021 17:09:24 +0000 (17:09 +0000)]
Merge branch 'test-docker-images' into 'develop'
Generate custom docker images for testing
See merge request pleroma/pleroma!3326
Mark Felder [Wed, 17 Feb 2021 16:24:37 +0000 (10:24 -0600)]
Do not want these interfering with develop builds
Mark Felder [Wed, 17 Feb 2021 16:08:12 +0000 (10:08 -0600)]
Make it possible to generate custom docker images by prefixing the branch name with "build-docker"
Haelwenn [Wed, 17 Feb 2021 15:57:11 +0000 (15:57 +0000)]
Merge branch 'chore/documentation-relicensing' into 'develop'
Relicense documentation under CC-BY-4.0
See merge request pleroma/pleroma!3322
Haelwenn [Wed, 17 Feb 2021 15:36:59 +0000 (15:36 +0000)]
Merge branch 'feat/chat-list-pagination' into 'develop'
Chats: Introduce /api/v2/pleroma/chats which implements pagination
Closes #2140
See merge request pleroma/pleroma!3325
rinpatch [Wed, 17 Feb 2021 15:14:27 +0000 (15:14 +0000)]
Merge branch 'remove-conversation-api' into 'develop'
Add API endpoint to remove a conversation
Closes #2488
See merge request pleroma/pleroma!3321
rinpatch [Wed, 17 Feb 2021 13:08:51 +0000 (13:08 +0000)]
Merge branch '2510-oauth-app-tokens-further-support' into 'develop'
[#2510] Improved support for app-bound OAuth tokens
Closes #2510
See merge request pleroma/pleroma!3316
rinpatch [Wed, 17 Feb 2021 12:58:33 +0000 (15:58 +0300)]
Chats: Introduce /api/v2/pleroma/chats which implements pagination
Also removes incorrect claim that /api/v1/pleroma/chats supports
pagination and deprecates it.
Closes #2140
rinpatch [Wed, 17 Feb 2021 09:48:42 +0000 (09:48 +0000)]
Merge branch 'update-default-avatar' into 'develop'
Update the default avatar to look nicer
See merge request pleroma/pleroma!3320
Ivan Tashkinov [Wed, 17 Feb 2021 06:23:35 +0000 (09:23 +0300)]
[#3213] Fixed `HashtagsTableMigrator.count/1`.
Ivan Tashkinov [Tue, 16 Feb 2021 20:23:49 +0000 (23:23 +0300)]
Merge remote-tracking branch 'remotes/origin/develop' into feature/object-hashtags-rework
Ivan Tashkinov [Tue, 16 Feb 2021 20:14:15 +0000 (23:14 +0300)]
[#3213] HashtagsTableMigrator state management refactoring & improvements (proper stats serialization etc.).
rinpatch [Tue, 16 Feb 2021 19:41:06 +0000 (22:41 +0300)]
ChatMessage schema: Add `unread` property
It is present in the code, but was not documented.
rinpatch [Tue, 16 Feb 2021 10:11:41 +0000 (10:11 +0000)]
Merge branch '2053-notifications-actor-is-active-refactoring' into 'develop'
[#2053] `Notification.for_user_query/2` timeout fix
Closes #2053
See merge request pleroma/pleroma!3318
rinpatch [Tue, 16 Feb 2021 10:08:08 +0000 (13:08 +0300)]
Relicense documentation under CC-BY-4.0
All contributors whose contributions were still being used
at the moment of relicensing have agreed to it.
See https://git.pleroma.social/pleroma/pleroma/-/issues/2146 .
Ivan Tashkinov [Mon, 15 Feb 2021 18:13:14 +0000 (21:13 +0300)]
[#3213] Fixed `hashtags.name` lookup (must use `citext` type to do index scan). Fixed embedded hashtags lookup (lowercasing), adjusted tests.
Egor Kislitsyn [Mon, 15 Feb 2021 17:48:13 +0000 (21:48 +0400)]
Add API endpoint to remove a conversation
Shpuld Shpuldson [Mon, 15 Feb 2021 13:52:36 +0000 (15:52 +0200)]
update changelog to mention change of avatar
Shpuld Shpuldson [Mon, 15 Feb 2021 13:44:27 +0000 (15:44 +0200)]
replace avi.png
rinpatch [Mon, 15 Feb 2021 10:30:29 +0000 (10:30 +0000)]
Merge branch 'chore/mailmap' into 'develop'
Add myself to .mailmap
See merge request pleroma/pleroma!3319
rinpatch [Mon, 15 Feb 2021 10:19:44 +0000 (13:19 +0300)]
Add myself to .mailmap
I changed my email to rin@patch.cx
Ivan Tashkinov [Mon, 15 Feb 2021 06:08:04 +0000 (09:08 +0300)]
[#2053] Changed `Notification/for_user_query/2` to use join to filter out inactive actors instead of subselect of _all_ inactive AP ids from `users`.
Ivan Tashkinov [Sat, 13 Feb 2021 19:01:11 +0000 (22:01 +0300)]
[#3213] `rescue` around potentially-raising `Repo.insert_all/_` calls. Misc. improvements (docs etc.).
Mark Felder [Fri, 12 Feb 2021 19:15:33 +0000 (13:15 -0600)]
Additional validation so we don't get caught off guard with a nil response
if CommonAPI ever prevents us from injecting this data
Mark Felder [Fri, 12 Feb 2021 19:05:12 +0000 (13:05 -0600)]
Inject fake application metadata and validate it is stripped by transmogrifier
Mark Felder [Fri, 12 Feb 2021 18:44:45 +0000 (12:44 -0600)]
App is already preloaded into the token, so avoid an extra query
rinpatch [Fri, 12 Feb 2021 08:52:04 +0000 (08:52 +0000)]
Merge branch 'not-used-mock' into 'develop'
Not used mock
See merge request pleroma/pleroma!3313
rinpatch [Fri, 12 Feb 2021 08:48:51 +0000 (08:48 +0000)]
Merge branch 'bugfix/answer-outbox' into 'develop'
Add test for Answer presence into an authenticated /outbox
See merge request pleroma/pleroma!3269
Mark Felder [Thu, 11 Feb 2021 21:53:10 +0000 (15:53 -0600)]
Use a custom oauth token so we can predict and validate the client_name and website
Mark Felder [Thu, 11 Feb 2021 21:10:53 +0000 (15:10 -0600)]
Document the application metadata is now retained as part of the post.
Mark Felder [Thu, 11 Feb 2021 21:07:21 +0000 (15:07 -0600)]
Validate client application metadata is retained in the object
Mark Felder [Thu, 11 Feb 2021 20:27:52 +0000 (14:27 -0600)]
Consistency
Mark Felder [Thu, 11 Feb 2021 20:22:58 +0000 (14:22 -0600)]
Revert to original formatting for these function defs
Mark Felder [Thu, 11 Feb 2021 20:19:53 +0000 (14:19 -0600)]
Prefer naming this put_application because we're putting it into the params map
Mark Felder [Thu, 11 Feb 2021 20:15:25 +0000 (14:15 -0600)]
%Token{} may not be in the conn, so avoid breaking the ability to post statuses in that scenario.
Ivan Tashkinov [Thu, 11 Feb 2021 16:31:57 +0000 (19:31 +0300)]
Merge remote-tracking branch 'remotes/origin/develop' into feature/object-hashtags-rework
# Conflicts:
# CHANGELOG.md
# lib/mix/tasks/pleroma/database.ex
# lib/pleroma/web/templates/feed/feed/_activity.rss.eex
Ivan Tashkinov [Thu, 11 Feb 2021 16:30:21 +0000 (19:30 +0300)]
[#3213] Reorganized hashtags cleanup. Transaction-wrapped Hashtag.get_or_create_by_names/1. Misc. improvements.
Ivan Tashkinov [Thu, 11 Feb 2021 12:02:50 +0000 (15:02 +0300)]
[#2510] Improved support for app-bound OAuth tokens. Auth-related refactoring.
Alexander Strizhakov [Wed, 10 Feb 2021 15:44:49 +0000 (18:44 +0300)]
not used mock
Haelwenn [Wed, 10 Feb 2021 00:52:59 +0000 (00:52 +0000)]
Merge branch 'fix/no-version-api-pleroma-social' into 'develop'
Fix no version number on api.pleroma.social
See merge request pleroma/pleroma!3310
Mark Felder [Wed, 10 Feb 2021 00:51:59 +0000 (18:51 -0600)]
Rendering fallback for when we don't have valid data available
Mark Felder [Wed, 10 Feb 2021 00:19:20 +0000 (18:19 -0600)]
Enable rendering of the client application data details
Mark Felder [Wed, 10 Feb 2021 00:07:15 +0000 (18:07 -0600)]
Ensure we capture the application details into the object
Mark Felder [Tue, 9 Feb 2021 20:41:58 +0000 (14:41 -0600)]
Add a function to lookup client app details by the app_id
rinpatch [Tue, 9 Feb 2021 19:29:43 +0000 (19:29 +0000)]
Merge branch 'features/ap_id-c2s-authentication' into 'develop'
activity_pub_controller: Add authentication to object & activity endpoints
See merge request pleroma/pleroma!3295
rinpatch [Tue, 9 Feb 2021 19:23:11 +0000 (22:23 +0300)]
OpenAPI spec: Do not show build enviroment in the spec version
rinpatch [Tue, 9 Feb 2021 19:10:09 +0000 (22:10 +0300)]
OpenAPI spec task: Load pleroma application to get version info
For whatever reason it seems to pick up the version without loading the
app on my machine, but not on the CI.
feld [Mon, 8 Feb 2021 22:47:03 +0000 (22:47 +0000)]
Merge branch 'new-user-emails' into 'develop'
Basic new user registration email, various improvements
See merge request pleroma/pleroma!3304
Mark Felder [Mon, 8 Feb 2021 22:40:27 +0000 (16:40 -0600)]
Lint
Mark Felder [Mon, 8 Feb 2021 22:39:55 +0000 (16:39 -0600)]
Revert "Add plaintext support for all emails except the digest"
This reverts commit
5df9f68392f65a5688867b9bad4bda766e492923.
feld [Mon, 8 Feb 2021 22:01:32 +0000 (22:01 +0000)]
Merge branch 'develop' into 'new-user-emails'
Haelwenn [Mon, 8 Feb 2021 21:49:20 +0000 (21:49 +0000)]
Merge branch 'feat/mrf-noemptypolicy' into 'develop'
MRF NoEmptyPolicy: Deny posts from local users if there is no content or only mentions.
See merge request pleroma/pleroma!3309
Mark Felder [Mon, 8 Feb 2021 21:32:47 +0000 (15:32 -0600)]
MRF NoEmptyPolicy: Deny posts from local users if there is no content or only mentions.
Helps prevent accidental button mashes from submitting incomplete posts
rinpatch [Mon, 8 Feb 2021 20:14:53 +0000 (20:14 +0000)]
Merge branch 'fix/rss-link' into 'develop'
RSS: Make sure post URL is the first `<link>` element
See merge request pleroma/pleroma!3308
rinpatch [Mon, 8 Feb 2021 19:41:35 +0000 (22:41 +0300)]
RSS: Make sure post URL is the first `<link>` element
Otherwise some RSS readers (tested in Miniflux) might pick the context
URL as the external link.
Related to #2425.
rinpatch [Mon, 8 Feb 2021 19:21:01 +0000 (19:21 +0000)]
Merge branch 'chore/descriptions-improvements' into 'develop'
More descriptions improvements
See merge request pleroma/pleroma!3307
Haelwenn (lanodan) Monnier [Thu, 21 Jan 2021 16:45:42 +0000 (17:45 +0100)]
activity_pub_controller: Add authentication to object & activity endpoints
Mark Felder [Mon, 8 Feb 2021 17:45:50 +0000 (11:45 -0600)]
Improve various descriptions and labels
Mark Felder [Mon, 8 Feb 2021 17:25:32 +0000 (11:25 -0600)]
Make the suggestion match the default value
feld [Mon, 8 Feb 2021 16:49:15 +0000 (16:49 +0000)]
Merge branch 'docs/improve-mailer-settings-desc' into 'develop'
Improve Mailer descriptions for AdminFE
See merge request pleroma/pleroma!3306
feld [Mon, 8 Feb 2021 16:43:04 +0000 (16:43 +0000)]
Merge branch 'develop' into 'docs/improve-mailer-settings-desc'
# Conflicts:
# CHANGELOG.md
Mark Felder [Sat, 6 Feb 2021 19:20:58 +0000 (13:20 -0600)]
Improved Mailer descriptions
rinpatch [Mon, 8 Feb 2021 10:31:20 +0000 (10:31 +0000)]
Merge branch 'fix/reports-from-admins' into 'develop'
Suppress report notification for admin actors
See merge request pleroma/pleroma!3301
Ivan Tashkinov [Sun, 7 Feb 2021 19:24:12 +0000 (22:24 +0300)]
[#3213] Partially addressed code review points.
migration rollback task changes, hashtags-related config handling tweaks, `hashtags.data` deletion (unused).
Mark Felder [Sat, 6 Feb 2021 19:18:48 +0000 (13:18 -0600)]
Alpha-sort adapters
Add various labels, descriptions and suggestions for all adapter settings and try to use
the same terminology by the service provider.
Mark Felder [Sat, 6 Feb 2021 18:34:32 +0000 (12:34 -0600)]
Move Enabled to top as it's the master control of all email. Description not really needed.
Mark Felder [Sat, 6 Feb 2021 18:28:49 +0000 (12:28 -0600)]
More description improvements
Mark Felder [Sat, 6 Feb 2021 18:06:47 +0000 (12:06 -0600)]
Update SMTP error description and default value
Mark Felder [Sat, 6 Feb 2021 18:04:28 +0000 (12:04 -0600)]
Update Swoosh docs URL, lint
Mark Felder [Sat, 6 Feb 2021 18:01:11 +0000 (12:01 -0600)]
There is no reason to expose these Local adapter settings either.
Mark Felder [Sat, 6 Feb 2021 17:55:25 +0000 (11:55 -0600)]
Remove No MX lookups setting
This setting defaults to false so the relay host will be used in an MX query so
multiple SMTP servers can be used. gen_smtp code states that all records returned from the
MX query are attempted in order and only a permanent SMTP error will stop the client from
attempting other servers in the list. Connection failures, TLS issues, etc will cause it to
try the next host.
If there is no MX record associated with the relay host, it automatically tries connecting to it
directly.
There is really no reason to expose this to end users. The default value is fine for everyone.
Mark Felder [Sat, 6 Feb 2021 17:55:01 +0000 (11:55 -0600)]
Improve SMTP adapter setting descriptions
Mark Felder [Sat, 6 Feb 2021 17:28:55 +0000 (11:28 -0600)]
No reason to suggest users try the useless "Local" mail adapter
rinpatch [Sat, 6 Feb 2021 09:42:20 +0000 (09:42 +0000)]
Merge branch 'feat/allow_alt_text_search_config' into 'develop'
allow user defined text search config in database
See merge request pleroma/pleroma!3275
hyperion [Sat, 6 Feb 2021 09:42:17 +0000 (09:42 +0000)]
Update priv/repo/migrations/20190501125843_add_fts_index_to_objects.exs, priv/repo/optional_migrations/rum_indexing/20190510135645_add_fts_index_to_objects_two.exs files
feld [Fri, 5 Feb 2021 19:46:53 +0000 (19:46 +0000)]
Merge branch 'varnish-large-files' into 'develop'
Improve Varnish VCL
See merge request pleroma/pleroma!3305
Mark Felder [Fri, 5 Feb 2021 19:32:21 +0000 (13:32 -0600)]
Add a default rule to not attempt to cache any files larger than 50MB
This fixes connection failures when trying to retrieve large files.
It is less common in typical Pleroma usage, but it's possible to encounter
this on a cloud instance with lower memory.
Mark Felder [Fri, 5 Feb 2021 15:13:53 +0000 (09:13 -0600)]
Slightly better formatting
Mark Felder [Fri, 5 Feb 2021 15:13:17 +0000 (09:13 -0600)]
Add plaintext support for all emails except the digest
Mark Felder [Fri, 5 Feb 2021 15:00:17 +0000 (09:00 -0600)]
Lint
Mark Felder [Thu, 4 Feb 2021 23:56:46 +0000 (17:56 -0600)]
Add basic test to validate the registration email is dispatched when the others are disabled
Also only check for subject as the body is a mess of html and we don't really need to prove its contents if the subject matches.
Mark Felder [Thu, 4 Feb 2021 23:42:09 +0000 (17:42 -0600)]
Actually send the mail
Mark Felder [Thu, 4 Feb 2021 22:14:37 +0000 (16:14 -0600)]
Added: New user registration mail
Mark Felder [Thu, 4 Feb 2021 21:16:50 +0000 (15:16 -0600)]
Add a registration email that only sends if no other emails (welcome, approval, confirmation) are enabled
Mark Felder [Thu, 4 Feb 2021 21:10:43 +0000 (15:10 -0600)]
Improve confirmation email language
Mark Felder [Thu, 4 Feb 2021 20:33:49 +0000 (14:33 -0600)]
Also make this maybe_ for consistency
Mark Felder [Thu, 4 Feb 2021 20:01:15 +0000 (14:01 -0600)]
These welcome emails are not guaranteed and can be private functions
Mark Felder [Thu, 4 Feb 2021 18:37:20 +0000 (12:37 -0600)]
Merge branch 'develop' into fix/reports-from-admins
feld [Thu, 4 Feb 2021 16:27:05 +0000 (16:27 +0000)]
Merge branch 'chore/fix-mix-env' into 'develop'
Standardize the way we capture and use Mix.env()
See merge request pleroma/pleroma!3303
Mark Felder [Thu, 4 Feb 2021 16:11:48 +0000 (10:11 -0600)]
Standardize the way we capture and use Mix.env()
feld [Thu, 4 Feb 2021 14:33:59 +0000 (14:33 +0000)]
Merge branch 'fix/configdb-error' into 'develop'
Improve error message for ConfigDB
See merge request pleroma/pleroma!3289