fe7163be33
Render markdown to html when using activitypub
...
This will produce better federated results outside of bookwyrm, and will
still display correctly within bookwyrm
2022-11-17 11:05:48 -08:00
c47a425cbe
Longer invite answer field
...
It was an oversight that it was only set to 50 characters I expect!
2022-11-15 14:52:07 -08:00
317cf5fcf5
Generate fewer add_status_tasks
...
Previously, every time a status was saved, a task would start to add it
to people's timelines. This meant there were a ton of duplicate tasks
that were potentially heavy to run. Now, the Status model has a "ready"
field which indicates that it's worth updating the timelines. It
defaults to True, which prevents statuses from accidentally not being
added due to ready state.
The ready state is explicitly set to false in the view, which is the
source of most of the noise for that task.
2022-11-15 14:14:32 -08:00
André Jaenisch
530d7de309
Use variable instead of string
...
Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2022-11-13 16:59:05 +01:00
ddcaf8e3b8
Use asyncio for broadcasting
2022-11-10 15:41:56 -08:00
eae1866992
Allow users to temporarily deactivate their accounts ( #2324 )
2022-11-10 13:40:54 -08:00
1f022496dd
Fixes duplicate notification on import
2022-11-07 10:36:31 -08:00
493fd68af4
Merge branch 'main' into cancel-imports
2022-11-07 09:06:13 -08:00
76fb4c9280
Revoke tasks
2022-11-05 15:41:06 -07:00
7a36de5ebe
Start and stop jobs from the model
2022-11-05 14:35:27 -07:00
97513a43d6
Set import job status when job starts and finishes
2022-11-05 13:47:06 -07:00
9cfcad20e0
Avoid divide by zero error
2022-11-05 13:33:57 -07:00
24e5ea3295
Check if import is stopped and create import status field
2022-11-05 13:32:23 -07:00
3c2f2c10bf
Show recent imports in a table
2022-11-05 13:12:23 -07:00
40e9428b49
Adds more fields to import admin table and ticks version
2022-11-03 11:30:43 -07:00
91b935bc0a
Merge pull request #2327 from bookwyrm-social/imports-admin
...
Imports admin
2022-11-01 20:53:58 -07:00
a8424f61f2
Mark imports as complete
...
This will let the user debug the import, and should only be used when
the import is in a bad state (marked as incomplete but with no pending
tasks)
2022-11-01 19:26:23 -07:00
6eab1fdd6d
Adds import admin view
2022-11-01 19:05:51 -07:00
553f170f89
Only show editions with the author on the author page
2022-11-01 18:04:27 -07:00
9b74c26742
backup codes
...
- add hotp_secret to user model
- view to create backup codes in user prefs
- check backup code if otp doesn't work
- increment hotp count if used
- show correct errors if code wrong
2022-10-15 07:47:20 +11:00
514762c233
fix typo in new user fields
...
oopsie
2022-10-15 07:47:20 +11:00
54daade9f9
prepare for 2FA
...
- add and migrate User fields for 2FA
- add views for 2FA
- add new forms for 2FA
- update package list in requirements.txt
- add URLs for 2FA views
2022-10-15 07:47:20 +11:00
Hunter Chambers
32f68c3f62
remove trailing whitespace causing pylint/black errors
2022-10-10 14:13:57 -04:00
Hunter Chambers
02c7397eaf
Closes #2194 Normalize stored ISNI
2022-10-09 19:36:24 -04:00
fdc477afdf
Merge pull request #2258 from bookwyrm-social/form-perms
...
Check permissions automatically on form save
2022-09-19 13:32:41 -07:00
35aebacf70
Fixes theme form and adds view tests
2022-09-19 13:13:21 -07:00
37dacaff6f
Fixes creating notifications for auto-moderation reports
2022-09-19 11:11:08 -07:00
6947f3b787
Uses class method to get list of instance admins
...
Re-writing this query over and over is a bad approach
2022-09-19 10:43:52 -07:00
9d8d85ebc1
Invite perms checks
2022-09-19 10:26:40 -07:00
3fd573c0da
Check perms on site model form
2022-09-19 10:16:38 -07:00
330be16516
Adds permissions checking for admin models
2022-09-19 10:12:47 -07:00
e51980bc12
Use BookWyrmModel as parent for admin models
...
This will make them more internally consistent and give them built-in
permissions checking
2022-09-19 09:35:38 -07:00
b0236b95bd
Merge branch 'main' into form-perms
2022-09-19 09:32:48 -07:00
3f5eb6c682
Adds raise_not_editable to User model
...
This model doens't inherit from BookwyrmModel for various reasons, but
it still needs to editability check.
2022-09-19 09:26:01 -07:00
aa67f23b03
Override raise_not_editable for report model
...
This model uses "reporter" as the field that represents the onwer of the
object, and "user" and the subject. In retrospect, maybe not the ideal
way to do it.
2022-09-19 09:20:44 -07:00
0ad3dc6245
allow 0.5 star ratings
2022-09-10 07:24:11 +10:00
844023f104
Merge pull request #2246 from bookwyrm-social/goal-model
...
Moves annual goal to its own file
2022-07-29 13:22:12 -07:00
2298a478cf
Moves annual goal to its own file
...
The user model file is just,, very long
2022-07-29 13:00:59 -07:00
ed20587695
Merge pull request #2168 from hughrun/tour
...
Add guided tour / walkthrough
2022-07-28 11:08:49 -07:00
7eb2a82e5f
Merge branch 'main' into misc/add_signatures_to_requests_for_masto_compat
2022-07-26 15:46:18 -07:00
f3bc7d759f
Only show pending follow requests from active users
2022-07-24 12:26:58 -07:00
639b727c92
Fixes perms check for ratings
2022-07-17 16:21:43 -07:00
17dc5e7eb1
Merge branch 'main' into tour
...
- we need to do this because of conflicting migrations
2022-07-17 16:30:45 +10:00
235e877b3d
Reverse order of notification users lists
...
Should show newest first
2022-07-14 11:00:05 -07:00
f92b4548b1
Fixes get_or_create error when multiple matching notifications exist
2022-07-09 12:30:05 -07:00
ab5e4128e6
Merge branch 'main' into tour
...
Also fixes conflict
2022-07-09 20:54:48 +10:00
3365bb6d35
show_guided_tour is not added to AP serialisation
2022-07-09 10:17:10 +10:00
a972c58f3b
Fixes errors in permissions
2022-07-07 14:01:51 -07:00
742d97b177
Python formatting
2022-07-07 12:23:10 -07:00
76c466ee45
Fixes cache invalidation for editions
...
Your reading status is shown across all editions of a work, so when you
change your status in relation to the edition you're currently reading,
it needs to invalidate the cached values for all editions of that work.
2022-07-07 12:21:24 -07:00