1
0
Fork 0
Commit graph

295 commits

Author SHA1 Message Date
d640e4ac96
disable user exports by default
- new setting to enable user exports defaults to False
- add setting to enable and disable user exports
- do not allow user exports when using s3 storage
- do not serve non-image files from /images/ (requires update to nginx settings)
- increase default file upload limit to 100MB to enable user exports to be imported (can be changed in .env)
2024-01-16 21:32:13 +11:00
0276c15948
Merge branch 'main' into user-migration 2023-11-22 21:00:04 +11:00
cfe42305be Merge branch 'main' into test-themes 2023-11-20 10:02:23 -08:00
d828ba0bc6 Give admins option to test if a theme loads correctly
If a theme is uploaded incorrectly or has errors in it, users can still
select the theme but it will cause a 500 error on every page, making the
app unusable and also making it impossible for them to switch to a
functional theme.

A better fix would be to fail gracefully, but in lieu of that, this will
at least let admins confirm if a theme is broken safely.
2023-11-20 09:56:51 -08:00
d94b27b723
Merge branch 'main' into user-migration 2023-11-19 19:18:22 -08:00
f011f2bce9
hide instance actor from users
The Instance Actor is required for signing http GET requests but is not a "user" and should not be otherwise interacted with.

- hides instance actor profile page, returning a 404
- excludes instance actor from search results and suggestions including in Getting Started
- replaces link to user profile in user admin page with a brief message box
- replaces panel in user admin page that allows for user to be suspended or removed with a message explaining why that is a very bad idea

fixes #3119
2023-11-20 12:17:52 +11:00
d5762f1d52
Merge branch 'main' into user-migration 2023-11-13 21:17:07 +11:00
c17a2ec55b Creates snippet for user tag in admin view
The existing display wasn't showing the correct colors and was repeating
code unnecessarily
2023-11-05 10:18:04 -08:00
67822d3cb0
Merge branch 'main' into user-migration 2023-11-05 06:52:48 -08:00
621cfa7ed2
Merge pull request #2970 from hughrun/move
Add `Move` activity for user migration
2023-11-01 17:14:34 -07:00
d2b2cc0521
make options consistent in celery
- changes 'broadcasts' to 'broadcast' in Celery page in admin section
- re-orders celery queues on admin page to be in English alphabetical order (other than priority levels) - this makes them consistent with the Flower interface
- fixes #3066
2023-10-29 11:55:06 +11:00
8477d0b89d
Merge branch 'main' into user-migration 2023-10-22 18:47:41 +11:00
07ef12ce8e
fix tests and linting 2023-10-22 17:26:27 +11:00
fd1ebf5f71
formatting and pylint fixes 2023-10-22 16:52:29 +11:00
a27c652501
admin view for user imports
- makes user_import_time_limit a site setting rather than a value in settings.py (note this applies to exports as well as imports)
- admins can change user_import_time_limit from UI
- admins can cancel stuck user imports
- disabling new imports also disables user imports
2023-10-22 15:07:49 +11:00
5b051631ec
Move MVP
* update User model to allow for moved_to and also_known_as values
* allow users to add aliases (also_known_as) in UI
* allow users to move account to another one (moved_to)
* redirect webfinger to the new account after a move
* present notification to followers inviting to follow at new account

Note: unlike Mastodon we're not running any unfollow/autofollow action here: users can decide for themselves
This makes undoing moves easier.

TODO

There is still a bug with incoming Moves, at least from Mastodon.
This seems to be something to do with Update activities (rather than Move, strictly).
2023-09-18 21:21:04 +10:00
Abraham Toriz
4c526dfcaa
Don't rely on ids to target inputs from labels 2023-08-25 13:33:55 -06:00
Abraham Toriz
dfa935bd72
fix pointed ids of labels in invite request form 2023-08-25 13:29:26 -06:00
a166af9990
Merge branch 'main' into report-actions 2023-08-06 16:00:59 -07:00
3e78e398c0 Switch from priority queues to function-based queues
Fixes: #2907
2023-07-20 12:25:30 -04:00
040dca0c31 Places first item of report history at top 2023-07-16 06:11:26 -07:00
b3a519c082 Converts report "comments" into broader "actions" table
This table will now track all actions taken on a report, like resolving
it, re-opening it, suspending the reported user, et cetera, in addition
to comments. When there are multiple admins, this change will make it
easier to understand what actions have been taken by whom on a report.
2023-05-16 11:00:33 -07:00
912e92bacd Show all (not just open) reports when linked from user admin 2023-05-07 09:50:24 -07:00
d033848d3f
Merge pull request #2780 from jsoref/spelling
Spelling
2023-04-07 06:30:16 -07:00
a8235fc3a2
Moves the stray "e" back to "mobile" 2023-04-07 06:04:47 -07:00
6986fc9025 Add form to remove tasks from Celery 2023-04-07 03:16:14 -04:00
Josh Soref
802a150c76 spelling: flex
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
f2ab8c2fe2 Fixes effect/affect error 2023-03-29 10:04:23 -07:00
b167364c5c Use a separate queue for broadcasts
I think this will go a long way to solve the federation delay problems
we're seeing on b.s. I'm not sure at what point adding more queues will
create more problems than it solves, but I do think in this case the
queues are out of balance and moving broadcasts (which are the most
common type of `medium_priority` task at the moment) to their own queue
will be an improvement.
2023-02-20 12:58:41 -08:00
2c2daf5fdf
Merge pull request #2644 from rrgeorge/rrgeorge/csp
Add Content-Security-Policy headers and secure cookies
2023-02-10 16:37:39 -08:00
Christof Dorner
f9a916db09
Merge pull request #2639 from bookwyrm-social/celery-ping
Celery ping
2023-02-03 09:40:25 +01:00
Robert George
36605efd20 Added support for secure cookies and django-csp 2023-02-01 12:59:10 -08:00
8f88b72620 Adds info about celery endpoint in admin view 2023-01-30 08:35:24 -08:00
Dustin Steiner
3fdbfe405b
fix: rename activate user form name 2023-01-28 08:31:16 +00:00
Dustin Steiner
07f4300176
feat: button in admin view to manually activate pending user 2023-01-27 15:43:34 +00:00
ef48149844 Show import queue in Celery admin 2023-01-26 07:52:37 -08:00
Christof Dorner
2c680cb365 Add default user auth group to registration settings 2023-01-21 17:04:32 +01:00
Giebisch
d0adb370cd Merge branch 'main' into import-limit 2023-01-16 02:05:18 +01:00
c279477507
Merge pull request #2590 from asmaloney/spelling-blocktrans-arg
Fix spelling in blocktrans arg
2023-01-11 07:27:27 -08:00
Giebisch
d35fec8217 Fixed trans 2023-01-11 15:18:50 +01:00
Andy Maloney
c6d2edfe7a Fix spelling in blocktrans arg 2023-01-10 17:21:00 -05:00
Andy Maloney
e1c90314ad Fix two "aria-hidden" tags 2023-01-10 17:17:03 -05:00
Giebisch
5200ea585a Import Limit Bugfix and lint 2023-01-05 23:37:43 +01:00
Giebisch
7e7966987b Merge branch 'main' into import-limit 2023-01-02 15:42:50 +01:00
Christof Dorner
4f6e4462dc Fix permissions check for System admin navigation section 2022-12-20 22:39:59 +01:00
Christof Dorner
744bd33d99 Add compile_themes command to themes admin page instructions 2022-12-19 18:43:16 +01:00
d4351cfcb4
Merge branch 'main' into import-limit 2022-12-16 12:44:57 -08:00
Giebisch
df54df8309 Added Import Limit 2022-12-15 23:43:25 +01:00
0744bd5385
delete avatar when user is deleted 2022-12-15 23:01:56 +01:00
58e8c0b5ec Merge branch 'main' into admin-roles 2022-12-11 11:58:54 -08:00