Commit graph

90 commits

Author SHA1 Message Date
Bart Schuurmans e04cd79ff8 Redirect to new URL when a merged object is requested 2024-03-23 19:28:57 +01:00
Mouse Reeve 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
Mouse Reeve 2de115fc1e Add helper to refer views back to http referers safely
In most cases, we want to return back to where we came from after
performing an action. It's not safe to return to an arbitrary referer,
so this streamlines using the util validator to verify the redirect and
fall back on regular redirect params if the referer is outside our
domain.
2023-03-20 10:25:38 -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 f5638c1e44 Removed unused helper function 2022-07-06 10:05:55 -07:00
Mouse Reeve 88b2cffcf2
Merge pull request #2035 from bookwyrm-social/stopped-shelf
Stopped shelf
2022-05-26 10:11:32 -07:00
Vivianne Langdon f2d7bdbf27 in progress fixes for pylint 2022-03-11 20:14:45 -08:00
Vivianne Langdon 81594892ef Fix test for unit test requests 2022-03-02 03:42:29 -08:00
Vivianne Langdon 05f11e68c5 Hopefully knocking out many of the unit test fails 2022-03-02 03:11:02 -08:00
Vivianne Langdon 440e2f8806 black 2022-03-02 01:47:08 -08:00
Vivianne Langdon d8181d6d66 Redirect to correct url with slug 2022-03-02 01:12:32 -08:00
Thomas Versteeg 1e3f9246d6 Produce a proper status 2022-02-28 20:56:59 +01:00
Mouse Reeve 0a182e8150 Caches query for landing page books 2022-01-09 13:04:41 -08:00
reesporte 85691478f1 save language preferences with cookies that last
(as long as login ones do)
2022-01-08 12:56:57 -06:00
Mouse Reeve 857bc6adae
Merge pull request #1635 from hughrun/remote-follow
Remote follow
2021-12-06 14:36:21 -08:00
Hugh Rundle c3f24316a0
lint 2021-12-06 17:02:47 +11:00
Hugh Rundle 6d894d71ec
stop pylint contradicting itself 2021-12-06 16:59:51 +11:00
Hugh Rundle 4ade580732
pylint called my code useless how rude 2021-12-06 16:47:04 +11:00
Hugh Rundle c817ea0ff9
improve error handling 2021-12-06 16:40:18 +11:00
Hugh Rundle 685e0a172d
make code WET again
moving url discovery borked general webfinger tests for some reason IDK why.
2021-12-06 10:45:39 +11:00
Hugh Rundle 781fe69470
more descriptive remote follow errors
- distinguish between invalid username, user not found, and remote follow not supported
- make helpers DRYer
2021-12-06 09:29:51 +11:00
Hugh Rundle e9bb2a04a4
code cleanup 2021-11-28 21:38:28 +11:00
Hugh Rundle 6e7d23c1ae
add remote follow button 2021-11-28 20:09:29 +11:00
Joachim 2ad37a22dd Move stream filter to helpers 2021-11-24 13:37:09 +01:00
Mouse Reeve 26de524247 Update language on login and edit preference 2021-10-06 13:01:29 -07:00
Mouse Reeve b2671e78ef Moves privacy filter to model class 2021-10-06 09:48:11 -07:00
Mouse Reeve 43f0440505 Improved privacy query 2021-10-02 16:55:15 -07:00
Mouse Reeve a24fe558fc
Merge pull request #1480 from bookwyrm-social/comment-formatting
Post-processes statuses composed in modals
2021-10-01 12:00:56 -07:00
Mouse Reeve 5dd2aac600 Merge branch 'main' into search-refactor 2021-09-30 10:41:30 -07:00
Mouse Reeve 75e69eb269 Post-processes statuses composed in modals 2021-09-30 10:00:05 -07:00
Mouse Reeve cf3157a3b5 Merge branch 'main' into pylint-update 2021-09-20 16:31:27 -07:00
Mouse Reeve 22ead6ba46 More efficient followers query 2021-09-20 14:29:01 -07:00
Mouse Reeve acfb1bb376 Updating string format synatx part 2 2021-09-18 11:32:00 -07:00
Mouse Reeve 98325818b2 Display search results in api mode and regular 2021-09-16 10:44:33 -07:00
Mouse Reeve c28d077cb4 Simplifies query for landing page books 2021-08-07 17:12:38 -07:00
Mouse Reeve 4d8bd3ad93 Cleans up landing page, since we're here 2021-08-07 16:37:51 -07:00
Mouse Reeve 040758c833 Renames "discover" 2021-08-07 11:25:09 -07:00
Mouse Reeve beb42b17f1 Removes unused import 2021-06-18 16:56:33 -07:00
Mouse Reeve 5b6048e4c6 Merge branch 'main' into suggestions-redis 2021-06-18 16:48:04 -07:00
Mouse Reeve 4479864008 Updates code for linter 2021-06-18 14:12:56 -07:00
Mouse Reeve f987a352c6 Fixes username helper 2021-05-22 21:33:56 -07:00
Mouse Reeve 2d4cec4422 Improves shelf page query efficiency a little 2021-05-22 19:54:50 -07:00
Mouse Reeve 2ff79c9953 Fixes python formatting 2021-05-22 09:55:38 -07:00
Mouse Reeve 07fc4a2efc
Merge branch 'main' into suggestions-redis 2021-05-20 20:25:15 -07:00
Mouse Reeve 4dacf4df3a Refactor get_user_from_username to raise 404 directly 2021-04-30 09:33:36 -07:00
Mouse Reeve 6983018d5e Merge branch 'main' into suggested_user_logic 2021-04-29 13:42:05 -07:00
Mouse Reeve 6551c59c45 Don't store default edition in the dataase 2021-04-28 16:05:17 -07:00
Mouse Reeve 5b5da46ede Merge branch 'main' into suggestions-redis 2021-04-26 10:43:25 -07:00
Mouse Reeve 8b154b69fb Fixes follower/following logic in suggested user annotations 2021-04-26 10:35:37 -07:00
Mouse Reeve 3ade2d3bb1 New version of black, new whitespace 2021-04-26 09:15:42 -07:00