Commit graph

39 commits

Author SHA1 Message Date
Mouse Reeve
32ac4111aa
Merge pull request #1768 from bookwyrm-social/shelf-button-cache
Cache queries in feed view
2022-01-06 10:42:31 -08:00
Mouse Reeve
4a43ad95ef Linting on suggested_users 2022-01-05 13:51:34 -08:00
Mouse Reeve
c28fbbeb09 Uses single query to get suggested users 2022-01-04 16:33:19 -08:00
Hugh Rundle
e261bfdb6a fix local filter for suggested users 2021-10-16 08:20:12 +11:00
Mouse Reeve
73a8f89bee
Merge branch 'main' into bookwyrm-groups 2021-10-06 11:37:38 -07:00
Mouse Reeve
f99a61b6bd Remove follow suggestion on request 2021-10-04 12:52:51 -07:00
Hugh Rundle
782512b2ce replace get_group_suggestions
- adds **filters argument to get_suggestions()
- passes local=True arg to get_suggestions() for group member suggestions
- removes get_group_suggestions()

Thanks to Mouse for the suggestion to keep the codebase DRY!
2021-10-04 21:25:38 +11:00
Hugh Rundle
29f18ee123 only suggest local users as potential group members 2021-10-02 19:35:57 +10:00
Mouse Reeve
377a4e1ef1 Updating string format syntax part 1 2021-09-17 21:39:18 -07:00
Mouse Reeve
4db5677509 Fixes filters 2021-09-08 12:06:23 -07:00
Mouse Reeve
88a65b0b88 Only re-rank on bookwyrm instances 2021-09-08 11:47:36 -07:00
Mouse Reeve
d3b3dd6d99 Update suggestions on domain block 2021-09-08 11:38:22 -07:00
Mouse Reeve
2e2ee72333 Fixes inactive or mastodon users showing up in suggestions
They shouldn't be there, but just to be safe
2021-09-08 11:26:41 -07:00
Mouse Reeve
e06e507c8d Cleans up suggested users logic 2021-09-08 11:14:41 -07:00
Mouse Reeve
aa91361fe4 Fixes celery kwarg for queue 2021-09-07 17:09:44 -07:00
Mouse Reeve
de3f18655c Set priorities on tasks 2021-09-07 16:33:43 -07:00
Mouse Reeve
9030f0d08b Bookwyrm user was already set 2021-08-06 09:14:07 -07:00
Mouse Reeve
d126d7ba91 Disable comically inefficient book count comparisons
Oops! Hopefully I can restore these in a way that doesn't break at even
a moderate scale
2021-08-06 08:43:05 -07:00
Mouse Reeve
6db6aa6cb1 Fixes removing user from recs on follow 2021-08-04 09:49:05 -07:00
Mouse Reeve
be044bce0d Updates mocks 2021-08-03 10:25:53 -07:00
Mouse Reeve
ee7bdc956a Streamline saves on user create 2021-08-03 07:43:03 -07:00
Mouse Reeve
df9787dd7a Removes stale data before doing repopulation
This probably is only an issue when there are very few users, like my
test instance
2021-08-02 18:14:44 -07:00
Mouse Reeve
5174260351 Python formatting 2021-05-22 15:57:08 -07:00
Mouse Reeve
edfc27a3cd Moves suggestion logic to celery 2021-05-22 15:53:07 -07:00
Mouse Reeve
644e5926db Remove suggested users on block 2021-05-22 14:05:59 -07:00
Mouse Reeve
9250b8b85d Handle follow/unfollow 2021-05-22 13:02:37 -07:00
Mouse Reeve
42699a8d25 Update your own suggestions on shelve 2021-05-22 12:20:23 -07:00
Mouse Reeve
f849d785a5 Functional un-discoverable setting 2021-05-22 12:10:14 -07:00
Mouse Reeve
29130d5f44 Detect new users and users with updated discoverability 2021-05-22 11:58:33 -07:00
Mouse Reeve
0044dc6587 Show suggested users when the feed is empty 2021-05-22 11:29:41 -07:00
Mouse Reeve
f98576bc25 Only create suggestions stores for local users 2021-05-22 11:01:35 -07:00
Mouse Reeve
32b3a02a17 Fixes reverse rank calculation 2021-04-26 11:14:26 -07:00
Mouse Reeve
5b5da46ede Merge branch 'main' into suggestions-redis 2021-04-26 10:43:25 -07:00
Mouse Reeve
5d9cfe0276 Fixes followers/following logic on suggested users 2021-04-26 10:37:10 -07:00
Mouse Reeve
4fb85ced5f Updates logic for new and newly discoverable users 2021-04-24 11:16:35 -07:00
Mouse Reeve
9880bdc75b Move anntotated users quuery into suggested users module 2021-04-23 18:26:48 -07:00
Mouse Reeve
dda21195de Correct calls to annotated user set 2021-04-23 16:34:04 -07:00
Mouse Reeve
03e5da12dd Call suggestions redis in feed 2021-04-06 08:31:18 -07:00
Mouse Reeve
18ba33e050 Uses redis for storing suggested users 2021-04-05 13:49:21 -07:00