Mouse Reeve
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
Mouse Reeve
b0236b95bd
Merge branch 'main' into form-perms
2022-09-19 09:32:48 -07:00
Mouse Reeve
543d13af6e
Removes explicit calls to raise_not_editable from views
...
These raises are handled implicitly in the form, so they don't have to
be called outright.
2022-09-08 11:03:06 -07:00
Mouse Reeve
5c3bb2da13
Refactors how mentions are collected
...
This should be quicker, because it queries the users in one go instead
of jumping straight to iterating over them, and it checks if a user
blocks the poster before allowing them to be tagged.
2022-08-05 14:06:39 -07:00
Mouse Reeve
8f79b362f8
Check permissions automatically on form save
2022-08-05 09:56:32 -07:00
Mouse Reeve
7fdfd0c9c7
Check permissions when creating a status
2022-07-15 09:26:52 -07:00
Mouse Reeve
661865de87
Remmoves insecure redirects
...
This should really fundamentally work differently, but this is a quick
for for now to avoid an insecure redirect. There will be a negative
impact on user experience from this, and a followup change should look
into these views and improve their flow.
2022-07-14 11:22:17 -07:00
Mouse Reeve
7f78140015
Uses library for html cleanup
2022-07-04 13:21:13 -07:00
Mouse Reeve
007751c8cb
Adds error logging to status views
2022-05-26 10:58:11 -07:00
Mouse Reeve
cc2b774fb5
Updates wording on content warning field
2022-03-10 09:16:50 -08:00
Mouse Reeve
4ca90ca10f
Renames class view
2022-01-11 10:40:32 -08:00
Hugh Rundle
5b67226571
forceReload prevents ajax submission
...
...instead of weird hacky workarounds forcing refreshes later.
2021-11-25 19:12:03 +11:00
Hugh Rundle
a3270551f9
code cleanup
2021-11-20 19:19:51 +11:00
Hugh Rundle
4b6f5c9f51
remove out of date comment
2021-11-20 19:03:57 +11:00
Hugh Rundle
b273123708
code style
2021-11-20 16:06:16 +11:00
Hugh Rundle
12810d8e34
don't try to update non-existent readthroughs
2021-11-20 16:03:46 +11:00
Hugh Rundle
af9768a2e3
force page reload when adding status from move button
2021-11-20 14:59:59 +11:00
Mouse Reeve
117e6a08b2
Merge branch 'main' into markdown
2021-10-15 10:06:34 -07:00
Mouse Reeve
1b1e557800
Updates app to use date instead of boolean
2021-10-15 09:08:10 -07:00
Mouse Reeve
4002df04fc
Send update activity on edit
2021-10-15 08:15:48 -07:00
Mouse Reeve
0dba071126
Fixes editing replies
2021-10-14 19:14:47 -07:00
Mouse Reeve
af567ba05e
Edit posts in original markdown syntax
2021-10-14 18:34:26 -07:00
Mouse Reeve
01911d3b23
Update and indicate edit status
2021-10-14 17:33:45 -07:00
Mouse Reeve
2d1052766d
Fixes undefined variable error
2021-10-14 17:32:38 -07:00
Mouse Reeve
f5e52d6a11
Save updated statuses
2021-10-14 17:23:54 -07:00
Mouse Reeve
066f14ca84
Save edited statuses
2021-10-14 17:13:54 -07:00
Mouse Reeve
92535a5481
Python formatting
2021-10-14 16:57:58 -07:00
Mouse Reeve
e149a14e73
Use href instead of POST form to edit status
2021-10-14 16:53:42 -07:00
Mouse Reeve
7488f8da96
Creates edit status endpoint
2021-10-14 16:30:27 -07:00
Mouse Reeve
803ad3c911
Removes delete and redraft view
2021-10-13 13:12:56 -07:00
Mouse Reeve
75e69eb269
Post-processes statuses composed in modals
2021-09-30 10:00:05 -07:00
Mouse Reeve
52c6a90498
Don't redirect on http request to readthrough
2021-09-29 11:02:04 -07:00
Mouse Reeve
d78c278665
Progress update flow for modal
2021-09-29 10:59:36 -07:00
Mouse Reeve
3657f9e0df
Check perms in status views
2021-09-27 14:03:17 -07:00
Mouse Reeve
c465c70c22
Handles statuses with no readthrough updates
2021-09-22 17:06:06 -07:00
Mouse Reeve
acfb1bb376
Updating string format synatx part 2
2021-09-18 11:32:00 -07:00
Mouse Reeve
3a7717e22f
Fixes status code variable in http response
2021-09-10 08:59:18 -07:00
Mouse Reeve
3c38a64a81
Return http responses for ajax requests
2021-09-10 08:03:22 -07:00
Mouse Reeve
ccc41deb36
Retain whitespace in split for detecting urls
2021-09-02 13:36:01 -07:00
Mouse Reeve
5bfa09e411
Fixes whitespace when formatting links
2021-09-02 09:13:02 -07:00
reesporte
4f321e5f33
fix link formatting issue, for real this time
2021-08-30 14:23:04 -05:00
reesporte
c6d08050e2
bruh
2021-08-30 11:51:42 -05:00
reesporte
0f481714c0
fix pylint errors
2021-08-30 11:47:19 -05:00
reesporte
6e628fed38
formatting
2021-08-30 11:38:00 -05:00
reesporte
ac6438147d
remove unused import
2021-08-30 11:20:56 -05:00
reesporte
5291308677
fix link formatting issues
2021-08-30 11:12:05 -05:00
Mouse Reeve
23631c3c4f
Fixes failing links
2021-07-07 09:49:22 -07:00
Mouse Reeve
9e5c7053e9
More pylint fixes
2021-06-18 14:29:24 -07:00
Mouse Reeve
4479864008
Updates code for linter
2021-06-18 14:12:56 -07:00
Mouse Reeve
5401d73909
404 instead of error for invalid post link
2021-05-20 16:06:23 -07:00