Rin Toshaka
dfc9c08796
formating
6 years ago
Rin Toshaka
ffec96d8cc
Everything should use Mix.Task.Run
6 years ago
Rin Toshaka
facfd03bc1
Move relay tasks to relay.ex
6 years ago
Rin Toshaka
e8ba579efe
Switch from User.info_changeset because it is deprecated
6 years ago
Rin Toshaka
c3519132df
Sorry
6 years ago
Rin Toshaka
5427d2af3a
Update mix tasks since User.info.info_changeset is deprecated
6 years ago
Rin Toshaka
9938fa3293
Merge develop to refactor/mix-tasks
6 years ago
Rin Toshaka
6396f1b58f
change new to gen in instance.ex . Refactor user.ex
6 years ago
William Pitcock
1a360a4eaa
compact database task: fix formatting
6 years ago
William Pitcock
ef56488349
mix: add task to compact the database
6 years ago
Rin Toshaka
03b2d1016d
F O R M A T I N G
6 years ago
Rin Toshaka
57c71f8468
Move generate_invite to user.ex
6 years ago
Rin Toshaka
d924b6cd3d
Refactor copypasta to a private function in instance.ex
6 years ago
Rin Toshaka
cbe22deb51
Lint fix
6 years ago
Rin Toshaka
faf1f2b304
Move gen.instance to instance.ex
6 years ago
Rin Toshaka
7983b0bdfe
Move unsubscribe user task to pleroma/user.ex. Delete unsubscribe_user.ex. Fix pleroma.user toggle_activated to work not only on local users.
6 years ago
lain
e3f3d13d99
Add uuid generation extension to sample_psql.eex.
6 years ago
Rin Toshaka
31b3ac05ac
Lint fix
6 years ago
Rin Toshaka
a8ef6b1190
Add admin option to pleroma.user new. Add user existence checking to toggle_activated
6 years ago
rinpatch
ae82852330
Move set_admin task to lib/mix/tasks/pleroma/user.ex
6 years ago
rinpatch
6f174cbb71
Delete reactivate user task
6 years ago
rinpatch
5f91d6b859
Fix toggle_deactivated to reactivate a deactivated user
6 years ago
rinpatch
fe2759bc9f
Attempt to resolve merge conflict
6 years ago
href
02d3dc6869
Uploads fun, part. 2
6 years ago
href
b19597f602
reverse proxy / uploads
6 years ago
Haelwenn (lanodan) Monnier
44b6200103
lib/mix/tasks/relay*: Use a with block
6 years ago
Haelwenn (lanodan) Monnier
12ccf0c4f8
Change Relay from `status` to `{status, message}`
6 years ago
Haelwenn (lanodan) Monnier
1a31d71187
lib/mix/tasks/relay_{un,}follow.ex: Use a with block
6 years ago
Haelwenn (lanodan) Monnier
7fbfd2db96
lib/mix/tasks/relay_{un,}follow.ex: Support status reply of Relay.{un,}follow
6 years ago
Haelwenn (lanodan) Monnier
011a2e36b1
lib/mix/tasks/make_admin.ex: New task
6 years ago
William Pitcock
2829fa4183
sample config: chase http_security change
6 years ago
William Pitcock
a2bf5426cb
sample config: document how to make CSPPlug send STS headers (off by default to allow for SSL debugging)
6 years ago
Haelwenn (lanodan) Monnier
5ecb5629f6
lib/mix/tasks: s/@doc/@moduledoc/
6 years ago
Haelwenn (lanodan) Monnier
5e3207045e
lib/mix/tasks/unsubscribe_user.ex: Fix syntax from bad line copy
6 years ago
Haelwenn (lanodan) Monnier
64c0289893
lib/mix/tasks: Add remaining documentation for mix tasks
6 years ago
Haelwenn (lanodan) Monnier
8b2541e4e7
Document the mix tasks in ex_doc instead
6 years ago
Haelwenn (lanodan) Monnier
e1814bb322
Document mix tasks
6 years ago
William Pitcock
f584a603f9
user: make User.delete() return data consistent with Object.delete()
6 years ago
scarlett
b92e38d2d4
Add user reactivation task.
6 years ago
William Pitcock
69192f36ff
mix tasks: add new task to unsubscribe all users from, and then ban a remote user (e.g. followbots)
6 years ago
Greizgh
a494508320
Cleanup postgresql setup script
...
Drop unused CREATEDB privilege.
Do not try to handle multiple run.
6 years ago
William Pitcock
8e28e8a18f
mix: remove fix_ap_users task, now obsolete
6 years ago
Thurloat
d424e9fa5f
fix S3 ref in sample config to generate proper path.
6 years ago
Thurloat
ab9e5d64d6
add a sample swift config
6 years ago
William Pitcock
03c35e579b
sample config: add S3 public endpoint option
6 years ago
William Pitcock
e95d958b52
sample config: show how amazon s3 support is activated, including third-party clones like wasabi
6 years ago
kaniini
0f5bff8c66
Merge branch 'develop' into 'feature/relay'
...
# Conflicts:
# lib/pleroma/web/activity_pub/utils.ex
6 years ago
Jorty
ba6e3eba33
Move invite task to pleroma namespace
...
Some other minor changes were made to make it consistent with the behavior of
other tasks both within Pleroma and the conventions set by dependencies such as
Phoenix. Namely, the task is named `gen.invite` and `IO.puts` has been replaced
with references to `Mix.shell()` where appropriate.
6 years ago
Jorty
8a1dc0de92
Refactor Mix tasks
...
1. Move Mix tasks into a `pleroma` namespace, to avoid
collisions with dependent packages.
2. Rename and condense tasks into two `pleroma.user` and
`pleroma.gen.instance` tasks for consistency with Hex and Phoenix.
3. Add additional functionality to the tasks to make them more
user-friendly. Arguments with sensible defaults were demoted to flags
and in the interactive `generate_config` (renamed to
`pleroma.gen.instance`), flags were added to allow non-interactive
use, though interactive use remains the primary interface. That task
also now prompts the user for database parameters.
4. Documentation has been added to both tasks such that `mix help` now
shows useful information.
5. Finally, use of IO.puts in tasks has been replaced with Mix.shell()
equivalents to make the behavior more consistent with Mix tasks in
other packages, and such that variables like MIX_QUIET are respected.
The only exception is in `mix pleroma.user reset_password`, wherein
the URL must always be printed regardless of the value of MIX_QUIET
since that's its entire purpose.
6 years ago
lambda
13440a80e1
Merge branch 'feature/invites' into 'develop'
...
Invites
Closes #108
See merge request pleroma/pleroma!208
6 years ago
lambda
1e9d152d60
Update generate_invite_token.ex
6 years ago
William Pitcock
266b314051
relay: fix invoking federator, use a timer to sleep the mix task to force a context switch
6 years ago
William Pitcock
99be3d3dcc
relay: add relay follow/unfollow tasks
6 years ago
Henry Jameson
0b1ca6a584
Token-generating task
6 years ago
eal
3326205f95
set_moderator: ensureall applications are started.
6 years ago
lambda
3f42806b1b
Merge branch 'develop' into 'develop'
...
Dedupe uploads
See merge request pleroma/pleroma!115
6 years ago
lambda
f34232da86
Update sample_config.eex
6 years ago
William Pitcock
3208611bfc
mix: add task for setting an account as locked or not
6 years ago
eal
18837c2fed
make_moderator.ex: set cache on update
6 years ago
Sir_Boops
3f0440ac3c
Dedupe uploads
6 years ago
lambda
ad563669c8
Merge branch 'feature/remote-user-deactivation' into 'develop'
...
remote user deactivation
See merge request pleroma/pleroma!154
6 years ago
lain
1d4bbec6b3
Fix User search.
...
Now uses a trigram based search. This is a lot faster and gives better
results. Closes #185 .
6 years ago
William Pitcock
a6a6915aaf
add mix task for deactivating a user by nickname
6 years ago
Mark Felder
aaacebd906
Fix unused variables, imports, and aliases
6 years ago
Mark Felder
636f0fa402
Clean up unused aliases and imports
6 years ago
lain
0b4ff1bfe2
fix again
7 years ago
lain
7b96a756fb
fix again
7 years ago
lain
77fc40d5d7
Fix generate config
7 years ago
eal
e30a056476
Revert "Ask for proxy URL if proxy enabled."
...
The most common case is running it on the same server.
7 years ago
eal
b586ead6b8
rm_user: also ensure that cache is running.
7 years ago
eal
4e3fc530db
Fix rm_user task.
7 years ago
Phenethylamine
13a64b82e3
Switch to User.delete for rm_user task
7 years ago
Phenethylamine
4478b9115c
Add rm_user mix task
7 years ago
lain
b910483c16
Fix register_user task.
7 years ago
lain
4afbef39f4
Format the code.
7 years ago
lain
6744710908
Fixes 4: In Da Hood.
7 years ago
lain
42f30d67fa
Fixes Christmas Special
7 years ago
lain
541a4cbbb6
Oh no! More fixes!
7 years ago
lain
1555b7fab5
Add AP fixup task.
7 years ago
lain
56cfe71858
Add moderator task.
7 years ago
lain
765671a5b0
Add password reset task.
7 years ago
eal
d56ab43609
Ask for proxy URL if proxy enabled.
...
Also change the true/false question to y/n
7 years ago
Sebastian Huebner
29b7e822fb
added question about activating mediaproxy to config generator
7 years ago
Henry Jameson
964e2dd2f0
unfuck
7 years ago
Henry Jameson
6b60f5f64a
made psql script compatible with migrations or generate_config reruns
7 years ago
Henry Jameson
071f518028
reverts config gen
7 years ago
Henry Jameson
a884e08271
fix
7 years ago
Henry Jameson
4071403117
fixes
7 years ago
Henry Jameson
0673511d39
first version of safe DB setup
7 years ago
Lain Iwakura
44dc694882
Add configuration generation tool, update readme.
7 years ago
Roger Braun
40706b4c4f
Use changeset in user registration mix task.
8 years ago
Roger Braun
8c2aad1cab
Make new users follow themselves.
8 years ago
Roger Braun
567ec494c5
Add user registration mix task.
8 years ago