akkoma
3 years agoLinting
lain [Mon, 21 Dec 2020 15:22:36 +0000 (16:22 +0100)]
Linting

3 years agoTest: More async/sync tweaks.
lain [Mon, 21 Dec 2020 14:05:56 +0000 (15:05 +0100)]
Test: More async/sync tweaks.

3 years agoTests: More test fixes.
lain [Mon, 21 Dec 2020 11:59:11 +0000 (12:59 +0100)]
Tests: More test fixes.

3 years agoXMLBuidlder test: Make async.
lain [Mon, 21 Dec 2020 11:35:04 +0000 (12:35 +0100)]
XMLBuidlder test: Make async.

3 years agoTest config: Raise pool size for postgres.
lain [Mon, 21 Dec 2020 11:31:12 +0000 (12:31 +0100)]
Test config: Raise pool size for postgres.

Given all the async tests, this can become a bottleneck.

3 years agoTests: Make as many tests as possible async.
lain [Mon, 21 Dec 2020 11:21:40 +0000 (12:21 +0100)]
Tests: Make as many tests as possible async.

In general, tests that match these criteria can be made async:

- Doesn't use real Cachex.
- Doesn't write to the Config / Application Environment.
- Uses Mock. Using Mox is fine.
- Uses the streamer.

3 years agoCachex: Unify arity of callback function
lain [Mon, 21 Dec 2020 11:03:58 +0000 (12:03 +0100)]
Cachex: Unify arity of callback function

3 years agoCaching: Add caching behavior, add null implementation.
lain [Mon, 21 Dec 2020 10:42:53 +0000 (11:42 +0100)]
Caching: Add caching behavior, add null implementation.

4 years agoTests: Use NullCache for async tests.
lain [Fri, 18 Dec 2020 18:49:01 +0000 (19:49 +0100)]
Tests: Use NullCache for async tests.

Caching can't work in async tests, so for them it is mocked to a
null cache that is always empty. Synchronous tests are stubbed
with the real Cachex, which is emptied after every test.

4 years agoCachex: Make caching provider switchable at runtime.
lain [Fri, 18 Dec 2020 16:44:46 +0000 (17:44 +0100)]
Cachex: Make caching provider switchable at runtime.

Defaults to Cachex.

4 years agoJason: Remove by now superfluous jason_types file
lain [Fri, 18 Dec 2020 16:44:19 +0000 (17:44 +0100)]
Jason: Remove by now superfluous jason_types file

4 years agoTests: Remove unneeded explicit cachex use.
lain [Fri, 18 Dec 2020 12:18:17 +0000 (13:18 +0100)]
Tests: Remove unneeded explicit cachex use.

Only use cachex when we're actually testing it.

4 years agoTests: Reset all cachex caches between synchronous tests
lain [Fri, 18 Dec 2020 10:53:43 +0000 (11:53 +0100)]
Tests: Reset all cachex caches between synchronous tests

Don't bother in the async case, it doesn't make sense there.

4 years agoMerge branch 'support/2255_posix_errors' into 'develop'
lain [Tue, 15 Dec 2020 15:16:03 +0000 (15:16 +0000)]
Merge branch 'support/2255_posix_errors' into 'develop'

[#2255] added error messages for posix error code

See merge request pleroma/pleroma!3138

4 years agoMerge branch 'fix/config-gen-detect-exiftool' into 'develop'
lain [Tue, 15 Dec 2020 14:39:15 +0000 (14:39 +0000)]
Merge branch 'fix/config-gen-detect-exiftool' into 'develop'

instance.gen: Warn that stripping exif requires exiftool

Closes #2343

See merge request pleroma/pleroma!3197

4 years agoMerge branch 'weblate-pleroma-pleroma' into 'develop'
lain [Tue, 15 Dec 2020 14:04:10 +0000 (14:04 +0000)]
Merge branch 'weblate-pleroma-pleroma' into 'develop'

Translations update from Weblate

See merge request pleroma/pleroma!3201

4 years agoTranslated using Weblate (Chinese (Simplified))
shironeko [Sun, 13 Dec 2020 04:47:36 +0000 (04:47 +0000)]
Translated using Weblate (Chinese (Simplified))

Currently translated at 87.7% (93 of 106 strings)

Translation: Pleroma/Pleroma backend
Translate-URL: https://translate.pleroma.social/projects/pleroma/pleroma/zh_Hans/

4 years agoMerge branch 'chore/refactor-hide-counts' into 'develop'
lain [Tue, 15 Dec 2020 11:32:49 +0000 (11:32 +0000)]
Merge branch 'chore/refactor-hide-counts' into 'develop'

Minor refactoring of the logic for hiding followers/following counts.

See merge request pleroma/pleroma!3202

4 years agoMinor refactoring of the logic for hiding followers/following counts.
Mark Felder [Mon, 14 Dec 2020 19:27:42 +0000 (13:27 -0600)]
Minor refactoring of the logic for hiding followers/following counts.

Field is not nullable anymore, and this is more readable.

4 years agoMerge branch 'fix/hackney-follow-redirects' into 'develop'
rinpatch [Sun, 13 Dec 2020 12:16:41 +0000 (12:16 +0000)]
Merge branch 'fix/hackney-follow-redirects' into 'develop'

Switch to a fork of Hackney 1.15.2 for now so we can have our URL normalization bugfix

Closes #2342

See merge request pleroma/pleroma!3199

4 years agoFixed Rich Media Previews
Mark Felder [Sat, 12 Dec 2020 19:21:59 +0000 (13:21 -0600)]
Fixed Rich Media Previews

4 years agoMerge branch 'fix/tracking-majic' into 'develop'
feld [Sat, 12 Dec 2020 19:20:34 +0000 (19:20 +0000)]
Merge branch 'fix/tracking-majic' into 'develop'

Majic: specify commit so source users do not get surprise updates

See merge request pleroma/pleroma!3200

4 years agoMajic: specify commit so source users do not get surprise updates
Mark Felder [Sat, 12 Dec 2020 19:04:16 +0000 (13:04 -0600)]
Majic: specify commit so source users do not get surprise updates

4 years agoSwitch to a fork of Hackney 1.15.2 for now so we can have our URL normalization bugfix
Mark Felder [Sat, 12 Dec 2020 19:01:30 +0000 (13:01 -0600)]
Switch to a fork of Hackney 1.15.2 for now so we can have our URL normalization bugfix

4 years agoinstance.gen: Warn that stripping exif requires exiftool
rinpatch [Sat, 12 Dec 2020 17:37:14 +0000 (20:37 +0300)]
instance.gen: Warn that stripping exif requires exiftool

And default to no if it is not installed

Closes #2343

4 years agoinstance.gen task: Only show files which will be actually overwritten
rinpatch [Sat, 12 Dec 2020 17:35:38 +0000 (20:35 +0300)]
instance.gen task: Only show files which will be actually overwritten

4 years agoMerge branch 'weblate-pleroma-pleroma' into 'develop'
Haelwenn [Fri, 11 Dec 2020 15:01:08 +0000 (15:01 +0000)]
Merge branch 'weblate-pleroma-pleroma' into 'develop'

Translations update from Weblate

See merge request pleroma/pleroma!3195

4 years agoTranslated using Weblate (Ukrainian)
ZEN [Thu, 10 Dec 2020 16:11:25 +0000 (16:11 +0000)]
Translated using Weblate (Ukrainian)

Currently translated at 100.0% (106 of 106 strings)

Translation: Pleroma/Pleroma backend
Translate-URL: https://translate.pleroma.social/projects/pleroma/pleroma/uk/

4 years agoMerge branch 'weblate-pleroma-pleroma' into 'develop'
Haelwenn [Thu, 10 Dec 2020 22:39:38 +0000 (22:39 +0000)]
Merge branch 'weblate-pleroma-pleroma' into 'develop'

Translations update from Weblate

See merge request pleroma/pleroma!3194

4 years agoAdded translation using Weblate (Ukrainian)
ZEN [Thu, 10 Dec 2020 16:09:44 +0000 (16:09 +0000)]
Added translation using Weblate (Ukrainian)

4 years agoMerge branch 'oauth-entities-expiration-tweaks' into 'develop'
feld [Wed, 9 Dec 2020 18:30:13 +0000 (18:30 +0000)]
Merge branch 'oauth-entities-expiration-tweaks' into 'develop'

Tweaks to OAuth entities expiration

See merge request pleroma/pleroma!3193

4 years agoTweaks to OAuth entities expiration: changed default to 30 days, removed hardcoded...
Ivan Tashkinov [Wed, 9 Dec 2020 18:14:39 +0000 (21:14 +0300)]
Tweaks to OAuth entities expiration: changed default to 30 days, removed hardcoded values usage, fixed OAuthView (expires_in).

4 years agoMerge branch 'oauth-token-30-days-expiration' into 'develop'
feld [Wed, 9 Dec 2020 17:10:09 +0000 (17:10 +0000)]
Merge branch 'oauth-token-30-days-expiration' into 'develop'

Changed default OAuth token expiration time to 30 days

See merge request pleroma/pleroma!3192

4 years agoChanged default OAuth token expiration time to 30 days.
Ivan Tashkinov [Wed, 9 Dec 2020 16:59:46 +0000 (19:59 +0300)]
Changed default OAuth token expiration time to 30 days.

4 years agoMerge branch 'auth-improvements' into 'develop'
lain [Wed, 9 Dec 2020 15:55:45 +0000 (15:55 +0000)]
Merge branch 'auth-improvements' into 'develop'

Cookie auth rework / Auth subsystem refactoring and tweaks

Closes pleroma/secteam/pleroma#3

See merge request pleroma/pleroma!3112

4 years agoMerge branch 'stream-follow-updates' into 'develop'
lain [Wed, 9 Dec 2020 15:52:31 +0000 (15:52 +0000)]
Merge branch 'stream-follow-updates' into 'develop'

Stream follow updates

Closes #2299

See merge request pleroma/pleroma!3183

4 years ago[#3112] .gitattributes fix.
Ivan Tashkinov [Wed, 9 Dec 2020 15:43:20 +0000 (18:43 +0300)]
[#3112] .gitattributes fix.

4 years agoUpdate CHANGELOG
Egor Kislitsyn [Wed, 9 Dec 2020 15:40:40 +0000 (19:40 +0400)]
Update CHANGELOG

4 years agoMerge branch 'feat/warn-large-pool-size' into 'develop'
lain [Tue, 8 Dec 2020 16:36:51 +0000 (16:36 +0000)]
Merge branch 'feat/warn-large-pool-size' into 'develop'

Add a startup error for modified Repo pool_size

See merge request pleroma/pleroma!3190

4 years agoApplicationRequirements: Add test, more text for pool size.
lain [Tue, 8 Dec 2020 16:30:10 +0000 (17:30 +0100)]
ApplicationRequirements: Add test, more text for pool size.

4 years agoApply 1 suggestion(s) to 1 file(s)
lain [Tue, 8 Dec 2020 16:16:43 +0000 (16:16 +0000)]
Apply 1 suggestion(s) to 1 file(s)

4 years agoMerge branch 'features/favicon-unreachable-instance' into 'develop'
feld [Mon, 7 Dec 2020 22:49:45 +0000 (22:49 +0000)]
Merge branch 'features/favicon-unreachable-instance' into 'develop'

instance: Do not fetch unreachable instances

Closes #2346

See merge request pleroma/pleroma!3189

4 years agoAdd a startup error for modified Repo pool_size
Mark Felder [Mon, 7 Dec 2020 22:36:44 +0000 (16:36 -0600)]
Add a startup error for modified Repo pool_size

4 years agoinstance.reachable?: Limit to binary input
Haelwenn (lanodan) Monnier [Mon, 7 Dec 2020 20:18:51 +0000 (21:18 +0100)]
instance.reachable?: Limit to binary input

4 years agoinstance: Do not fetch unreachable instances
Haelwenn (lanodan) Monnier [Mon, 7 Dec 2020 19:09:34 +0000 (20:09 +0100)]
instance: Do not fetch unreachable instances

Closes: https://git.pleroma.social/pleroma/pleroma/-/issues/2346
4 years ago[#3112] Changelog entry.
Ivan Tashkinov [Mon, 7 Dec 2020 18:50:32 +0000 (21:50 +0300)]
[#3112] Changelog entry.

4 years agoMerge remote-tracking branch 'remotes/origin/develop' into auth-improvements
Ivan Tashkinov [Mon, 7 Dec 2020 18:45:04 +0000 (21:45 +0300)]
Merge remote-tracking branch 'remotes/origin/develop' into auth-improvements

# Conflicts:
# CHANGELOG.md

4 years agoMerge branch 'feature/configdb-mix-tasks' into 'develop'
lain [Mon, 7 Dec 2020 18:06:06 +0000 (18:06 +0000)]
Merge branch 'feature/configdb-mix-tasks' into 'develop'

Add mix tasks to give additional ConfigDB recovery and debugging options

See merge request pleroma/pleroma!3174

4 years agoPrint out settings that will be removed when specifying the group and key for consistency
Mark Felder [Mon, 7 Dec 2020 17:45:56 +0000 (11:45 -0600)]
Print out settings that will be removed when specifying the group and key for consistency

Fix error message when specified key doesn't exist

4 years agoFormatting
Mark Felder [Mon, 7 Dec 2020 17:22:07 +0000 (11:22 -0600)]
Formatting

4 years agoSlip in a test to ensure we can use the atom syntax in mix task arguments
Mark Felder [Mon, 7 Dec 2020 17:21:06 +0000 (11:21 -0600)]
Slip in a test to ensure we can use the atom syntax in mix task arguments

4 years agoApply 1 suggestion(s) to 1 file(s)
feld [Mon, 7 Dec 2020 17:13:29 +0000 (17:13 +0000)]
Apply 1 suggestion(s) to 1 file(s)

4 years agoMerge branch 'feature/configdb-mix-tasks-refactoring' into 'feature/configdb-mix...
feld [Mon, 7 Dec 2020 17:12:47 +0000 (17:12 +0000)]
Merge branch 'feature/configdb-mix-tasks-refactoring' into 'feature/configdb-mix-tasks'

[#3174] Refactoring: ConfigDB fetching functions, ConfigDB tests.

See merge request pleroma/pleroma!3187

4 years ago[#3174] Refactoring: ConfigDB fetching functions, ConfigDB tests.
Ivan Tashkinov [Sun, 6 Dec 2020 15:02:30 +0000 (18:02 +0300)]
[#3174] Refactoring: ConfigDB fetching functions, ConfigDB tests.
Minor fixes.

4 years agoMerge remote-tracking branch 'remotes/origin/develop' into auth-improvements
Ivan Tashkinov [Sun, 6 Dec 2020 10:59:35 +0000 (13:59 +0300)]
Merge remote-tracking branch 'remotes/origin/develop' into auth-improvements

4 years ago[#3112] Ensured presence and consistency of :user and :token assigns (EnsureUserToken...
Ivan Tashkinov [Sun, 6 Dec 2020 10:59:10 +0000 (13:59 +0300)]
[#3112] Ensured presence and consistency of :user and :token assigns (EnsureUserTokenAssignsPlug). Refactored auth info dropping functions.

4 years agoFix typo
Egor Kislitsyn [Sat, 5 Dec 2020 19:48:13 +0000 (23:48 +0400)]
Fix typo

4 years agoAdd entry announcing new ConfigDB mix tasks
Mark Felder [Sat, 5 Dec 2020 14:41:15 +0000 (08:41 -0600)]
Add entry announcing new ConfigDB mix tasks

4 years agoMerge branch 'fix/mix-task-yn-prompt' into 'develop'
feld [Fri, 4 Dec 2020 18:17:35 +0000 (18:17 +0000)]
Merge branch 'fix/mix-task-yn-prompt' into 'develop'

Remove Mix.Pleroma.shell_yes?/1

See merge request pleroma/pleroma!3179

4 years agoAnswer new prompt interactively
Mark Felder [Fri, 4 Dec 2020 18:07:23 +0000 (12:07 -0600)]
Answer new prompt interactively

4 years agoshell_yes?/1 was not showing the correct message and always defaults to yes which...
Mark Felder [Fri, 27 Nov 2020 19:42:28 +0000 (13:42 -0600)]
shell_yes?/1 was not showing the correct message and always defaults to yes which is dangerous

4 years agoMerge branch 'issue/2256' into 'develop'
feld [Fri, 4 Dec 2020 17:49:05 +0000 (17:49 +0000)]
Merge branch 'issue/2256' into 'develop'

[#2256] added subject actor to moderation log

See merge request pleroma/pleroma!3164

4 years agoMore compact representation
Mark Felder [Fri, 4 Dec 2020 17:37:49 +0000 (11:37 -0600)]
More compact representation

4 years agoEnsure deleting entire group prints out settings that will be removed before actually...
Mark Felder [Fri, 4 Dec 2020 17:30:48 +0000 (11:30 -0600)]
Ensure deleting entire group prints out settings that will be removed before actually removing them

4 years agoFix deleting an entire group. Also utilize Pleroma.ConfigDB.delete/1
Mark Felder [Fri, 4 Dec 2020 17:19:58 +0000 (11:19 -0600)]
Fix deleting an entire group. Also utilize Pleroma.ConfigDB.delete/1

4 years agoUse Pleroma.ConfigDB.delete/1 instead of rolling our own
Mark Felder [Fri, 4 Dec 2020 17:09:13 +0000 (11:09 -0600)]
Use Pleroma.ConfigDB.delete/1 instead of rolling our own

4 years agoUse Enum.any? to ensure we return true if there are results
Mark Felder [Fri, 4 Dec 2020 17:04:53 +0000 (11:04 -0600)]
Use Enum.any? to ensure we return true if there are results

4 years agoMerge branch 'supported-emojos' into 'develop'
rinpatch [Thu, 3 Dec 2020 18:29:42 +0000 (18:29 +0000)]
Merge branch 'supported-emojos' into 'develop'

Update Emoji support to unicode 13.1, support all RGI emoji.

See merge request pleroma/pleroma!3186

4 years agoconfig_db search methods
Alexander Strizhakov [Thu, 3 Dec 2020 16:34:23 +0000 (19:34 +0300)]
config_db search methods

4 years agodump_key/2 no longer used
Mark Felder [Thu, 3 Dec 2020 16:03:44 +0000 (10:03 -0600)]
dump_key/2 no longer used

4 years agoApply 6 suggestion(s) to 1 file(s)
feld [Thu, 3 Dec 2020 16:03:14 +0000 (16:03 +0000)]
Apply 6 suggestion(s) to 1 file(s)

4 years agoCredo
Mark Felder [Thu, 3 Dec 2020 15:58:24 +0000 (09:58 -0600)]
Credo

4 years agoDocs, Changelog: Add info about regional indicators
lain [Thu, 3 Dec 2020 15:18:35 +0000 (16:18 +0100)]
Docs, Changelog: Add info about regional indicators

4 years agoEmoji: Also accept regional indicators
lain [Thu, 3 Dec 2020 15:17:39 +0000 (16:17 +0100)]
Emoji: Also accept regional indicators

4 years agoMerge branch '2339-local-remote-mixup' into 'develop'
Haelwenn [Thu, 3 Dec 2020 01:28:54 +0000 (01:28 +0000)]
Merge branch '2339-local-remote-mixup' into 'develop'

User: Don't allow local users in remote changesets

Closes #2339

See merge request pleroma/pleroma!3185

4 years agoMerge branch 'update-linkify' into 'develop'
feld [Wed, 2 Dec 2020 22:40:13 +0000 (22:40 +0000)]
Merge branch 'update-linkify' into 'develop'

Update Linkify to 0.4.0

See merge request pleroma/pleroma!3184

4 years agoMake the --force flag for reset command consistent with the others and deduplicate...
Mark Felder [Wed, 2 Dec 2020 22:34:23 +0000 (16:34 -0600)]
Make the --force flag for reset command consistent with the others and deduplicate db truncation

4 years agoAdd --force flag for delete and reset commands
Mark Felder [Wed, 2 Dec 2020 22:24:32 +0000 (16:24 -0600)]
Add --force flag for delete and reset commands

Bunch of reorganization and consolidation

4 years agoAdd comment for this mysterious behavior
Mark Felder [Wed, 2 Dec 2020 20:22:59 +0000 (14:22 -0600)]
Add comment for this mysterious behavior

4 years agoNo need for a separate functions here
Mark Felder [Wed, 2 Dec 2020 19:00:07 +0000 (13:00 -0600)]
No need for a separate functions here

4 years agoUse a callback strategy to short circuit the functions and print a nice error
Mark Felder [Wed, 2 Dec 2020 18:33:34 +0000 (12:33 -0600)]
Use a callback strategy to short circuit the functions and print a nice error

4 years agoCentralize check that configdb is enabled which now raises an exception
Mark Felder [Sun, 29 Nov 2020 19:29:36 +0000 (13:29 -0600)]
Centralize check that configdb is enabled which now raises an exception

4 years agoLeft public during debugging
Mark Felder [Sun, 29 Nov 2020 18:59:03 +0000 (12:59 -0600)]
Left public during debugging

4 years agoAdd tests for config dumping
Mark Felder [Sat, 28 Nov 2020 19:32:28 +0000 (13:32 -0600)]
Add tests for config dumping

4 years agoUse inspect instead of faking the output
Mark Felder [Sat, 28 Nov 2020 18:24:37 +0000 (12:24 -0600)]
Use inspect instead of faking the output

4 years agoRemove unnecessary keys command
Mark Felder [Sat, 28 Nov 2020 18:22:30 +0000 (12:22 -0600)]
Remove unnecessary keys command

4 years agoSync docs with mix commands
Mark Felder [Sat, 28 Nov 2020 18:19:00 +0000 (12:19 -0600)]
Sync docs with mix commands

4 years agoThe debug output is no longer there by default
Mark Felder [Sat, 28 Nov 2020 18:09:17 +0000 (12:09 -0600)]
The debug output is no longer there by default

4 years agoEnsure scary warning starts on a new line
Mark Felder [Sat, 28 Nov 2020 18:05:01 +0000 (12:05 -0600)]
Ensure scary warning starts on a new line

4 years agoUpdate ConfigDB docs for new mix commands
Mark Felder [Sat, 28 Nov 2020 17:53:45 +0000 (11:53 -0600)]
Update ConfigDB docs for new mix commands

4 years agoPrint whole config when resetting and include a scary looking message.
Mark Felder [Fri, 27 Nov 2020 22:32:46 +0000 (16:32 -0600)]
Print whole config when resetting and include a scary looking message.

4 years agoBoth are really atoms
Mark Felder [Fri, 27 Nov 2020 22:32:32 +0000 (16:32 -0600)]
Both are really atoms

4 years agoTransform strings to atoms for all cases, including when the atom is a module like...
Mark Felder [Fri, 27 Nov 2020 22:20:28 +0000 (16:20 -0600)]
Transform strings to atoms for all cases, including when the atom is a module like Pleroma.Emails.Mailer

4 years agoSupport atoms and strings as args to the mix task
Mark Felder [Fri, 27 Nov 2020 20:44:05 +0000 (14:44 -0600)]
Support atoms and strings as args to the mix task

Improve output. Show the user what will be deleted before the prompt.

4 years agoFix deletion regression due to strings instead of atoms
Mark Felder [Fri, 27 Nov 2020 20:02:45 +0000 (14:02 -0600)]
Fix deletion regression due to strings instead of atoms
Improve message after successful deletion

4 years agoImprove dumping groups and specific keys; add prompts for delete and reset
Mark Felder [Fri, 27 Nov 2020 19:55:43 +0000 (13:55 -0600)]
Improve dumping groups and specific keys; add prompts for delete and reset

4 years agoSupport listing groups, listing keys in a group, and dumping the config based on...
Mark Felder [Fri, 27 Nov 2020 18:33:55 +0000 (12:33 -0600)]
Support listing groups, listing keys in a group, and dumping the config based on group or specific key in that group

4 years agoSort output by group
Mark Felder [Fri, 27 Nov 2020 18:32:53 +0000 (12:32 -0600)]
Sort output by group

Not the best sorting, but better than nothing.

4 years agoAdd the delete and reset instructions
Mark Felder [Wed, 25 Nov 2020 23:51:31 +0000 (17:51 -0600)]
Add the delete and reset instructions

4 years agoRename keys to groups
Mark Felder [Wed, 25 Nov 2020 23:49:36 +0000 (17:49 -0600)]
Rename keys to groups