akkoma
5 years agoupdate fast sanitize dependency
Ariadne Conill [Sun, 3 Nov 2019 21:41:30 +0000 (15:41 -0600)]
update fast sanitize dependency

5 years agoMerge branch 'bugfix/streamer-follows' into 'develop'
rinpatch [Sun, 3 Nov 2019 17:09:57 +0000 (17:09 +0000)]
Merge branch 'bugfix/streamer-follows' into 'develop'

streamer: use direct object for filter checks when there is no valid child object in an activity

Closes #1291

See merge request pleroma/pleroma!1931

5 years agoMerge branch 'feature/omit-relay-user' into 'develop'
kaniini [Sun, 3 Nov 2019 16:19:27 +0000 (16:19 +0000)]
Merge branch 'feature/omit-relay-user' into 'develop'

AdminAPI: Omit relay user from users list

Closes #1349

See merge request pleroma/pleroma!1924

5 years agoMerge branch 'feature/fast_sanitize' into 'develop'
kaniini [Sun, 3 Nov 2019 16:18:19 +0000 (16:18 +0000)]
Merge branch 'feature/fast_sanitize' into 'develop'

Switching to FastSanitize

See merge request pleroma/pleroma!1916

5 years agostreamer: use direct object for filter checks when there is no valid child object...
Ariadne Conill [Sun, 3 Nov 2019 15:05:12 +0000 (09:05 -0600)]
streamer: use direct object for filter checks when there is no valid child object in an activity

We call Object.normalize/1 to get the child object for situations like Announce.
However, the check is flawed and immediately fails if Object.normalize/1 fails.
Instead, we should use the activity itself in those cases to allow activities which
never have a child object to pass through the filter.

Closes #1291

5 years agoMerge branch 'fix/migration-schema' into 'develop'
Haelwenn [Sat, 2 Nov 2019 15:07:47 +0000 (15:07 +0000)]
Merge branch 'fix/migration-schema' into 'develop'

Fix bookmark migration using a query with a schema

See merge request pleroma/pleroma!1923

5 years agoBump fast_sanitize version
rinpatch [Fri, 1 Nov 2019 17:58:24 +0000 (20:58 +0300)]
Bump fast_sanitize version

5 years agoMerge branch 'fix/moderation-log-crash' into 'develop'
kaniini [Fri, 1 Nov 2019 17:56:20 +0000 (17:56 +0000)]
Merge branch 'fix/moderation-log-crash' into 'develop'

Fix moderation log crash

Closes #1345

See merge request pleroma/pleroma!1929

5 years agoFix moderation log crash
Maxim Filippov [Fri, 1 Nov 2019 16:13:29 +0000 (19:13 +0300)]
Fix moderation log crash

5 years agoUndo dialyzer fix
Maxim Filippov [Fri, 1 Nov 2019 12:14:43 +0000 (15:14 +0300)]
Undo dialyzer fix

5 years agoMerge branch 'fix-recipients-from-activity' into 'develop'
kaniini [Fri, 1 Nov 2019 12:06:44 +0000 (12:06 +0000)]
Merge branch 'fix-recipients-from-activity' into 'develop'

Fix duplicate recipients from activity

See merge request pleroma/pleroma!1921

5 years agoMerge branch 'refactor/db-add-defaults' into 'develop'
lain [Thu, 31 Oct 2019 13:34:57 +0000 (13:34 +0000)]
Merge branch 'refactor/db-add-defaults' into 'develop'

Set defaults to fields with NULL values

Closes #1358

See merge request pleroma/pleroma!1914

5 years agoFix count
Maxim Filippov [Thu, 31 Oct 2019 12:34:49 +0000 (15:34 +0300)]
Fix count

5 years agoAdminAPI: Omit relay user from users list
Maxim Filippov [Wed, 30 Oct 2019 23:26:02 +0000 (02:26 +0300)]
AdminAPI: Omit relay user from users list

5 years agoFix "the call ... will never return" warning
Maxim Filippov [Wed, 30 Oct 2019 23:25:15 +0000 (02:25 +0300)]
Fix "the call ... will never return" warning

5 years agoBump fast_sanitize dependency so this builds on more than just Linux
Mark Felder [Wed, 30 Oct 2019 22:57:08 +0000 (17:57 -0500)]
Bump fast_sanitize dependency so this builds on more than just Linux

5 years agoMerge branch 'develop' into feature/fast_sanitize
Mark Felder [Wed, 30 Oct 2019 22:51:15 +0000 (17:51 -0500)]
Merge branch 'develop' into feature/fast_sanitize

5 years agoRemove following column from the migrations
Roman Chvanikov [Wed, 30 Oct 2019 15:34:14 +0000 (18:34 +0300)]
Remove following column from the migrations

5 years agoUpdate test for get_recipients_from_activity
kPherox [Wed, 30 Oct 2019 11:14:07 +0000 (20:14 +0900)]
Update test for get_recipients_from_activity

5 years agoMerge branch 'fix/blocked-follows' into 'develop'
rinpatch [Wed, 30 Oct 2019 10:59:25 +0000 (10:59 +0000)]
Merge branch 'fix/blocked-follows' into 'develop'

Add a migration to fix blocked follows

Closes #1359

See merge request pleroma/pleroma!1922

5 years agoFix bookmark migration using a query with a schema
rinpatch [Wed, 30 Oct 2019 09:59:14 +0000 (12:59 +0300)]
Fix bookmark migration using a query with a schema

This resulted in failures when updating from Pleroma <1.0 because of all
the new fields that were added to the user schema.

5 years agoAdd a migration to fix blocked follows
Egor Kislitsyn [Wed, 30 Oct 2019 08:52:37 +0000 (15:52 +0700)]
Add a migration to fix blocked follows

5 years agoFix duplicate recipients
kPherox [Wed, 30 Oct 2019 06:40:25 +0000 (15:40 +0900)]
Fix duplicate recipients

5 years agoRip out the rest of htmlsanitizeex
rinpatch [Wed, 30 Oct 2019 06:20:13 +0000 (09:20 +0300)]
Rip out the rest of htmlsanitizeex

5 years agoRemove commented-out code
rinpatch [Tue, 29 Oct 2019 17:58:54 +0000 (20:58 +0300)]
Remove commented-out code

5 years agoFix XSS emoji test
rinpatch [Tue, 29 Oct 2019 17:49:32 +0000 (20:49 +0300)]
Fix XSS emoji test

5 years agoMerge branch 'fix/migrations-same-module-name' into 'develop'
rinpatch [Tue, 29 Oct 2019 14:17:09 +0000 (14:17 +0000)]
Merge branch 'fix/migrations-same-module-name' into 'develop'

Fix two migrations sharing the same module name

See merge request pleroma/pleroma!1919

5 years agoBump fast_sanitize dependency
rinpatch [Tue, 29 Oct 2019 14:00:03 +0000 (17:00 +0300)]
Bump fast_sanitize dependency

5 years agoFix two migrations sharing the same module name
rinpatch [Tue, 29 Oct 2019 13:56:24 +0000 (16:56 +0300)]
Fix two migrations sharing the same module name

This makes ecto execute only the latter one.

5 years agoMerge branch 'fix-follow-requests' into 'develop'
rinpatch [Tue, 29 Oct 2019 11:24:07 +0000 (11:24 +0000)]
Merge branch 'fix-follow-requests' into 'develop'

FIx follow requests

Closes #1357

See merge request pleroma/pleroma!1918

5 years agoMigrate missing follow requests
kPherox [Tue, 29 Oct 2019 10:16:34 +0000 (19:16 +0900)]
Migrate missing follow requests

5 years agoBump fast_sanitize version
rinpatch [Tue, 29 Oct 2019 10:05:20 +0000 (13:05 +0300)]
Bump fast_sanitize version

5 years agoAdd test follow activity for locked account
kPherox [Tue, 29 Oct 2019 09:46:22 +0000 (18:46 +0900)]
Add test follow activity for locked account

5 years agoAdd pending to handle incoming for Follow activity
kPherox [Tue, 29 Oct 2019 08:12:49 +0000 (17:12 +0900)]
Add pending to handle incoming for Follow activity

5 years agoAdd fast_sanitize to dependencies
rinpatch [Mon, 28 Oct 2019 22:21:00 +0000 (01:21 +0300)]
Add fast_sanitize to dependencies

5 years agoSwitch from HtmlSanitizeEx to FastSanitize
rinpatch [Mon, 28 Oct 2019 22:18:08 +0000 (01:18 +0300)]
Switch from HtmlSanitizeEx to FastSanitize

5 years agoEnsure myhtmlex is started before swarm
rinpatch [Mon, 28 Oct 2019 22:16:57 +0000 (01:16 +0300)]
Ensure myhtmlex is started before swarm

Otherwise swarm is going to attempt resizing the cluster and timeout

5 years agoBlacklist myhtmlex nodes from swarm
rinpatch [Mon, 28 Oct 2019 22:16:22 +0000 (01:16 +0300)]
Blacklist myhtmlex nodes from swarm

5 years agoUse the default scrubber before mediaproxy transformation
rinpatch [Mon, 28 Oct 2019 22:15:28 +0000 (01:15 +0300)]
Use the default scrubber before mediaproxy transformation

5 years agoMove setDefaultsToTables to past to run before notNull migrations
Roman Chvanikov [Mon, 28 Oct 2019 16:17:50 +0000 (19:17 +0300)]
Move setDefaultsToTables to past to run before notNull migrations

5 years agoComplete defaults
Roman Chvanikov [Mon, 28 Oct 2019 16:16:19 +0000 (19:16 +0300)]
Complete defaults

5 years agoMerge branch 'fix/migration' into 'develop'
lain [Mon, 28 Oct 2019 08:05:14 +0000 (08:05 +0000)]
Merge branch 'fix/migration' into 'develop'

Fix `SetNotNullForUsers` migration

See merge request pleroma/pleroma!1913

5 years agoFix `SetNotNullForUsers` migration
Egor Kislitsyn [Mon, 28 Oct 2019 07:45:50 +0000 (14:45 +0700)]
Fix `SetNotNullForUsers` migration

5 years agoMerge branch 'refactor/following-relationships' into 'develop'
lain [Mon, 28 Oct 2019 07:27:45 +0000 (07:27 +0000)]
Merge branch 'refactor/following-relationships' into 'develop'

Move following relationships to a separate table

Closes #1233

See merge request pleroma/pleroma!1814

5 years agoAdd migration
Roman Chvanikov [Sun, 27 Oct 2019 16:29:35 +0000 (19:29 +0300)]
Add migration

5 years agoMerge branch 'improve-user-info-migration' into 'develop'
kaniini [Sun, 27 Oct 2019 05:33:41 +0000 (05:33 +0000)]
Merge branch 'improve-user-info-migration' into 'develop'

User info migration improvements

See merge request pleroma/pleroma!1887

5 years agoMerge branch 'refactor/db-not-null-constraints-for-users' into 'develop'
kaniini [Sun, 27 Oct 2019 05:32:01 +0000 (05:32 +0000)]
Merge branch 'refactor/db-not-null-constraints-for-users' into 'develop'

Add NOT NULL constraints for users table

See merge request pleroma/pleroma!1910

5 years agoMerge branch 'refactor/db-not-null-constraints-for-user_invite_tokens' into 'develop'
kaniini [Sun, 27 Oct 2019 05:31:52 +0000 (05:31 +0000)]
Merge branch 'refactor/db-not-null-constraints-for-user_invite_tokens' into 'develop'

Add NOT NULL constraints for user_invite_tokens table

See merge request pleroma/pleroma!1909

5 years agoMerge branch 'refactor/db-not-null-constraints-for-thread_mutes' into 'develop'
kaniini [Sun, 27 Oct 2019 05:31:41 +0000 (05:31 +0000)]
Merge branch 'refactor/db-not-null-constraints-for-thread_mutes' into 'develop'

Add NOT NULL constraints for thread_mutes table

See merge request pleroma/pleroma!1908

5 years agoMerge branch 'refactor/db-not-null-constraints-for-scheduled_activities' into 'develop'
kaniini [Sun, 27 Oct 2019 05:31:31 +0000 (05:31 +0000)]
Merge branch 'refactor/db-not-null-constraints-for-scheduled_activities' into 'develop'

Add NOT NULL constraints for scheduled_activities table

See merge request pleroma/pleroma!1907

5 years agoMerge branch 'refactor/db-not-null-constraints-for-registrations' into 'develop'
kaniini [Sun, 27 Oct 2019 05:31:21 +0000 (05:31 +0000)]
Merge branch 'refactor/db-not-null-constraints-for-registrations' into 'develop'

Add NOT NULL constraints for registrations table

See merge request pleroma/pleroma!1906

5 years agoMerge branch 'refactor/db-not-null-constraints-for-push_subscriptions' into 'develop'
kaniini [Sun, 27 Oct 2019 05:31:09 +0000 (05:31 +0000)]
Merge branch 'refactor/db-not-null-constraints-for-push_subscriptions' into 'develop'

Add NOT NULL constraints for push_subscriptions table

See merge request pleroma/pleroma!1905

5 years agoMerge branch 'refactor/db-not-null-constraints-for-password_reset_tokens' into 'develop'
kaniini [Sun, 27 Oct 2019 05:30:59 +0000 (05:30 +0000)]
Merge branch 'refactor/db-not-null-constraints-for-password_reset_tokens' into 'develop'

Add NOT NULL constraints for password_reset_tokens table

See merge request pleroma/pleroma!1904

5 years agoMerge branch 'refactor/db-not-null-constraints-for-objects' into 'develop'
kaniini [Sun, 27 Oct 2019 05:30:47 +0000 (05:30 +0000)]
Merge branch 'refactor/db-not-null-constraints-for-objects' into 'develop'

Add NOT NULL constraints for objects table

See merge request pleroma/pleroma!1903

5 years agoMerge branch 'refactor/db-not-null-constraints-for-oauth_authorizations' into 'develop'
kaniini [Sun, 27 Oct 2019 05:30:36 +0000 (05:30 +0000)]
Merge branch 'refactor/db-not-null-constraints-for-oauth_authorizations' into 'develop'

Add NOT NULL constraints for oauth_authorizations table

See merge request pleroma/pleroma!1902

5 years agoMerge branch 'refactor/db-not-null-constraints-for-oauth_tokens' into 'develop'
kaniini [Sun, 27 Oct 2019 05:30:25 +0000 (05:30 +0000)]
Merge branch 'refactor/db-not-null-constraints-for-oauth_tokens' into 'develop'

Add NOT NULL constraints for oauth_tokens table

See merge request pleroma/pleroma!1901

5 years agoMerge branch 'refactor/db-not-null-constraints-for-notifications' into 'develop'
kaniini [Sun, 27 Oct 2019 05:30:09 +0000 (05:30 +0000)]
Merge branch 'refactor/db-not-null-constraints-for-notifications' into 'develop'

Add NOT NULL constraints for notifications table

See merge request pleroma/pleroma!1900

5 years agoMerge branch 'refactor/db-not-null-constraints-for-moderation_log' into 'develop'
kaniini [Sun, 27 Oct 2019 05:29:56 +0000 (05:29 +0000)]
Merge branch 'refactor/db-not-null-constraints-for-moderation_log' into 'develop'

Add NOT NULL constraints for moderation_log table

See merge request pleroma/pleroma!1899

5 years agoMerge branch 'refactor/db-not-null-constraints-for-markers' into 'develop'
kaniini [Sun, 27 Oct 2019 05:29:45 +0000 (05:29 +0000)]
Merge branch 'refactor/db-not-null-constraints-for-markers' into 'develop'

Add NOT NULL constraints for markers table

See merge request pleroma/pleroma!1898

5 years agoMerge branch 'refactor/db-not-null-constraints-for-lists' into 'develop'
kaniini [Sun, 27 Oct 2019 05:29:33 +0000 (05:29 +0000)]
Merge branch 'refactor/db-not-null-constraints-for-lists' into 'develop'

Add NOT NULL constraints for lists table

See merge request pleroma/pleroma!1897

5 years agoMerge branch 'refactor/db-not-null-constraints-for-instances' into 'develop'
kaniini [Sun, 27 Oct 2019 05:29:18 +0000 (05:29 +0000)]
Merge branch 'refactor/db-not-null-constraints-for-instances' into 'develop'

Add NOT NULL constraints for instances table

See merge request pleroma/pleroma!1896

5 years agoMerge branch 'refactor/db-not-null-constraints-for-filters' into 'develop'
kaniini [Sun, 27 Oct 2019 05:29:05 +0000 (05:29 +0000)]
Merge branch 'refactor/db-not-null-constraints-for-filters' into 'develop'

Add NOT NULL constraints for filters table

See merge request pleroma/pleroma!1895

5 years agoMerge branch 'refactor/db-not-null-constraints-for-conversation_participations' into...
kaniini [Sun, 27 Oct 2019 05:28:45 +0000 (05:28 +0000)]
Merge branch 'refactor/db-not-null-constraints-for-conversation_participations' into 'develop'

Add NOT NULL constraints for conversation_participations table

See merge request pleroma/pleroma!1894

5 years agoMerge branch 'refactor/db-not-null-constraints-for-conversation_participation_recipie...
kaniini [Sun, 27 Oct 2019 05:28:32 +0000 (05:28 +0000)]
Merge branch 'refactor/db-not-null-constraints-for-conversation_participation_recipient_ships' into 'develop'

Add NOT NULL constraints for conversation_participation_recipient_ships table

See merge request pleroma/pleroma!1893

5 years agoMerge branch 'refactor/db-not-null-constraints-for-config' into 'develop'
kaniini [Sun, 27 Oct 2019 05:28:18 +0000 (05:28 +0000)]
Merge branch 'refactor/db-not-null-constraints-for-config' into 'develop'

Add NOT NULL constraints for config table

See merge request pleroma/pleroma!1892

5 years agoMerge branch 'refactor/db-not-null-constraints-for-bookmarks' into 'develop'
kaniini [Sun, 27 Oct 2019 05:28:03 +0000 (05:28 +0000)]
Merge branch 'refactor/db-not-null-constraints-for-bookmarks' into 'develop'

Add NOT NULL constraints for bookmarks table

See merge request pleroma/pleroma!1891

5 years agoMerge branch 'refactor/db-not-null-constraints-for-apps' into 'develop'
kaniini [Sun, 27 Oct 2019 05:27:43 +0000 (05:27 +0000)]
Merge branch 'refactor/db-not-null-constraints-for-apps' into 'develop'

Add NOT NULL constraints for apps table

See merge request pleroma/pleroma!1890

5 years agoMerge branch 'refactor/db-not-null-constraints-for-activity-expirations' into 'develop'
kaniini [Sun, 27 Oct 2019 05:27:24 +0000 (05:27 +0000)]
Merge branch 'refactor/db-not-null-constraints-for-activity-expirations' into 'develop'

Add NOT NULL constraints for activity_expirations table

See merge request pleroma/pleroma!1889

5 years agoMerge branch 'refactor/db-not-null-constraints-for-activities' into 'develop'
kaniini [Sun, 27 Oct 2019 05:26:31 +0000 (05:26 +0000)]
Merge branch 'refactor/db-not-null-constraints-for-activities' into 'develop'

Add NOT NULL constraints for activities table

See merge request pleroma/pleroma!1888

5 years agoMerge branch 'readme-pg-contrib' into 'develop'
kaniini [Sun, 27 Oct 2019 04:40:06 +0000 (04:40 +0000)]
Merge branch 'readme-pg-contrib' into 'develop'

Clarify that postgres contrib modules are required, not just postgres.

See merge request pleroma/pleroma!1911

5 years agoClarify that postgres contrib modules are required, not just postgres.
Phil Hagelberg [Sat, 26 Oct 2019 23:19:58 +0000 (16:19 -0700)]
Clarify that postgres contrib modules are required, not just postgres.

5 years agoAdd migration
Roman Chvanikov [Sat, 26 Oct 2019 19:59:24 +0000 (22:59 +0300)]
Add migration

5 years agoAdd migration
Roman Chvanikov [Sat, 26 Oct 2019 19:58:37 +0000 (22:58 +0300)]
Add migration

5 years agoAdd migration
Roman Chvanikov [Sat, 26 Oct 2019 19:57:43 +0000 (22:57 +0300)]
Add migration

5 years agoAdd migration
Roman Chvanikov [Sat, 26 Oct 2019 19:56:48 +0000 (22:56 +0300)]
Add migration

5 years agoAdd migration
Roman Chvanikov [Sat, 26 Oct 2019 19:55:29 +0000 (22:55 +0300)]
Add migration

5 years agoAdd migration
Roman Chvanikov [Sat, 26 Oct 2019 19:54:37 +0000 (22:54 +0300)]
Add migration

5 years agoAdd migration
Roman Chvanikov [Sat, 26 Oct 2019 19:53:41 +0000 (22:53 +0300)]
Add migration

5 years agoAdd migration
Roman Chvanikov [Sat, 26 Oct 2019 19:52:49 +0000 (22:52 +0300)]
Add migration

5 years agoAdd migration
Roman Chvanikov [Sat, 26 Oct 2019 19:50:52 +0000 (22:50 +0300)]
Add migration

5 years agoPut correct migration
Roman Chvanikov [Sat, 26 Oct 2019 19:49:25 +0000 (22:49 +0300)]
Put correct migration

5 years agoAdd migration
Roman Chvanikov [Sat, 26 Oct 2019 19:46:09 +0000 (22:46 +0300)]
Add migration

5 years agoAdd migration
Roman Chvanikov [Sat, 26 Oct 2019 19:45:24 +0000 (22:45 +0300)]
Add migration

5 years agoAdd migration
Roman Chvanikov [Sat, 26 Oct 2019 19:44:42 +0000 (22:44 +0300)]
Add migration

5 years agoAdd migration
Roman Chvanikov [Sat, 26 Oct 2019 19:43:32 +0000 (22:43 +0300)]
Add migration

5 years agoAdd migration
Roman Chvanikov [Sat, 26 Oct 2019 19:42:24 +0000 (22:42 +0300)]
Add migration

5 years agoAdd migration
Roman Chvanikov [Sat, 26 Oct 2019 19:40:51 +0000 (22:40 +0300)]
Add migration

5 years agoAdd migration
Roman Chvanikov [Sat, 26 Oct 2019 19:39:24 +0000 (22:39 +0300)]
Add migration

5 years agoAdd migration
Roman Chvanikov [Sat, 26 Oct 2019 19:38:07 +0000 (22:38 +0300)]
Add migration

5 years agoAdd migration
Roman Chvanikov [Sat, 26 Oct 2019 19:37:30 +0000 (22:37 +0300)]
Add migration

5 years agoAdd migration
Roman Chvanikov [Sat, 26 Oct 2019 19:36:43 +0000 (22:36 +0300)]
Add migration

5 years agoAdd migration
Roman Chvanikov [Sat, 26 Oct 2019 19:33:18 +0000 (22:33 +0300)]
Add migration

5 years agoAdd migration
Roman Chvanikov [Sat, 26 Oct 2019 19:32:31 +0000 (22:32 +0300)]
Add migration

5 years agoAdd migration
Roman Chvanikov [Sat, 26 Oct 2019 19:31:25 +0000 (22:31 +0300)]
Add migration

5 years agoAdd migration
Roman Chvanikov [Sat, 26 Oct 2019 19:28:18 +0000 (22:28 +0300)]
Add migration

5 years agoMerge branch 'conversation-read-status-for-blocking-user' into 'develop'
kaniini [Sat, 26 Oct 2019 10:37:27 +0000 (10:37 +0000)]
Merge branch 'conversation-read-status-for-blocking-user' into 'develop'

Count only visible conversations in the user's unread_conversation_count

See merge request pleroma/pleroma!1886

5 years agoUser info migration improvements
rinpatch [Sat, 26 Oct 2019 00:45:24 +0000 (03:45 +0300)]
User info migration improvements

- Move column additions into a separate migration, so postgres doesn't
need an exclusive lock on the table for the main part
- Fill in columns by using one big update statement instead of a bunch
of small ones because it's much faster (the migration took 140s on
patch.cx database)

5 years agoMark the conversations with the blocked user as read and update the blocking user...
eugenijm [Fri, 25 Oct 2019 18:29:23 +0000 (21:29 +0300)]
Mark the conversations with the blocked user as read and update the blocking user's `unread_conversation_count`.

Since the conversations with the blocked user are invisible, they are excluded
from the blocking user's `unread_conversation_count`.

5 years agoMerge branch 'remove-unsed-info-fields-fn' into 'develop'
rinpatch [Fri, 25 Oct 2019 14:51:02 +0000 (14:51 +0000)]
Merge branch 'remove-unsed-info-fields-fn' into 'develop'

Remove unused Pleroma.User.info_fields/0

See merge request pleroma/pleroma!1882

5 years agoRemove unused Pleroma.User.info_fields/0
Egor Kislitsyn [Fri, 25 Oct 2019 09:48:01 +0000 (16:48 +0700)]
Remove unused Pleroma.User.info_fields/0