Aevann1
50bcc81f14
give user an error when they give invalid page input
2022-11-07 23:34:43 +02:00
Aevann1
87cf4d13ff
add cc post search parameter
2022-11-07 02:22:06 +02:00
justcool393
7f716a6e72
users and search: add status codes
2022-10-30 02:33:42 -05:00
justcool393
5d2f4d203b
users: add is_visible_to function for checking user visibility to a certain other user
2022-10-30 02:31:21 -05:00
justcool393
3a6dfdf2de
listings: constantify PAGE_SIZE as 25
...
magic numbers are bad, do better next time
2022-10-28 22:20:48 -05:00
Snakes
be7be28182
Fix comment search query ampersand bug.
2022-10-27 18:24:12 -04:00
justcool393
c2b6c5903d
fix 500 in search.py
2022-10-15 03:30:13 -07:00
justcool393
39aa59a37a
add g.is_api_or_xhr so we can use it where we want to give API output
...
* also use v.client for strict API clients
2022-10-15 02:11:36 -07:00
Aevann1
7a6b4406ef
remove redundant shadoban filters
2022-10-13 12:47:55 +02:00
Snakes
e5af46c4ae
Fix shadow visibility logic.
2022-10-13 00:10:34 -04:00
Snakes
166e33dc38
Clarify architecture of sort_objects.
2022-10-12 04:05:26 -04:00
Aevann1
2aa281e8c8
refactor sorting again (untested)
2022-10-12 09:03:28 +02:00
Aevann1
b1abd33835
refactor sorting
2022-10-12 08:10:11 +02:00
justcool393
2004278791
syntax error fix
2022-10-11 08:40:19 -07:00
justcool393
c0acb1722b
abort a bunch of stuff where we manually returned JSON
2022-10-11 08:40:19 -07:00
justcool393
6c3b0f13da
search and stuff
2022-10-05 23:45:27 -07:00
justcool393
1220d06eab
some admin perms and also fix search
2022-10-05 22:37:50 -07:00
justcool393
d78d57ec79
all seeing eye permission
2022-10-05 21:59:06 -07:00
justcool393
2fc3044d5b
shadowban perms and stuff
2022-10-05 19:24:37 -07:00
Snakes
6757831e0f
Sanitize more special characters in search.
2022-10-04 01:31:27 -04:00
Snakes
99b6b356f0
Add comment search "quoted phrase" behavior.
2022-10-02 15:50:05 -04:00
Snakes
0dfa4525fa
Remove special characters from search query.
2022-10-02 07:42:42 -04:00
Snakes
216022a5a0
Comments search: utilize lexeme config.
2022-10-02 06:24:03 -04:00
Snakes
701f64c91b
Change comment search to use tsvector.
2022-10-02 04:55:39 -04:00
Aevann1
7212fa44ef
give ppl an explanation when searching comments
2022-10-01 11:38:14 +02:00
justcool393
78b668a870
don't duplicate checks for users
2022-09-30 15:51:17 -07:00
justcool393
7e3f43c9ab
unperson shadowbanned users ( #373 )
...
* unperson shadowbanned users
if a shadowbanned user copes, does anyone hear them seethe?
* unperson shadowbanned users (by id)
* don't import that
* Add include_blocks.
We don't always want to request blocks from the db when we have a user set
* block shadowbanned users from hole mod tools
* don't allow awarding shadowbanned things
* fix conflict
* gracefully use get_account when specified and also add include_blocks flag to get_account as well
2022-09-30 14:00:58 -07:00
Aevann1
52c5dd6028
disable /search/comments for now
2022-09-30 14:20:53 +02:00
Aevann1
4abf75edc0
add error codes
2022-09-12 11:52:07 +02:00
Aevann1
0c32d56cd6
casino + style shit
2022-09-05 01:15:37 +02:00
Aevann1
60709a7253
add error handling for incorrect time format in search
2022-08-31 03:48:20 +02:00
Aevann1
5345558a43
support unix time in search time filtering too
2022-08-30 03:15:54 +02:00
booosy
d2556bc718
Make sure the user has actually input some token to search with when doing exact searching ( #337 )
2022-08-24 04:59:51 -04:00
booosy
be38c1e980
Add title and exact boolean operators to search ( #333 )
2022-08-23 22:54:27 -04:00
Aevann1
1d7b19f485
make "before" and "after" human-readable
2022-08-17 21:09:15 +02:00
Aevann1
133508fc6a
add "before" and "after" search keywords
2022-08-15 21:02:23 +02:00
Snakes
6a7a3b1821
Hide shadowed user content in more contexts.
...
- Search: posts by shadowed user.
- Search: shadowed users in search for users.
- Direct links to shadowed user posts display as removed.
- Other users' profile comments listings hide comments on shadowed
posts. Users can still see their own comments on shadowed posts.
Similar to ghosted comment logic.
2022-08-08 18:21:59 -04:00
Aevann1
85c4ff1621
make user search also user original_username for searching
2022-07-30 20:29:07 +02:00
Aevann1
ec3b4357cf
refactor sorting and time filter
2022-07-09 12:32:49 +02:00
Aevann1
470b046702
compile regext outside of routes
2022-07-06 13:49:13 +02:00
Snakes
95f9fbfab1
Add searching for "exact phrases" to search.
2022-07-04 04:19:41 -04:00
Aevann1
2c54180ddc
remove print statement I forgot
2022-07-01 13:28:00 +02:00
Aevann1
c2b892af04
search comments within a specific thread
2022-07-01 13:11:23 +02:00
Snakes
cd556b6d8e
Refactor UI name of hole/sub to constant.
2022-06-26 03:41:28 -04:00
Aevann1
9593dc58dd
move regex from helpers.const into its own helper file
2022-06-24 16:30:59 +02:00
Snakes
532b248847
Extend 'hole' search operator to comments.
2022-06-23 02:11:03 -04:00
Aevann1
10a47ca837
refactor sorting posts
2022-06-22 21:57:57 +02:00
Aevann1
8ecb4582d0
refactor sorting comments
2022-06-22 21:50:20 +02:00
Snakes
79ced3816c
Add 'hole' search operator.
2022-06-22 02:35:50 -04:00
Snakes
f7a59f4672
Make search operators case insensitive.
...
In light of the fact that all searching against the database is done
using ILIKE pattern matching, the only truly case-sensitive part of
the search query was search operator keys. Rather than lowercase the
keys in `criteria` before returning, we instead lowercase the entire
search string at the beginning of parsing. This will further enforce
case-insensitivity on the design of search going forward.
2022-06-21 01:31:31 -04:00
Aevann1
74a5ea88ac
expand post searching to include bodies (instead of titles only)
2022-06-13 19:33:20 +02:00
Aevann1
50b995d3a0
fds
2022-05-25 22:16:26 +02:00
Aevann1
9af50ae9b3
jannies can now block ppl
2022-05-24 22:43:49 +02:00
Aevann1
6b10d097a2
mn
2022-05-05 01:09:46 +02:00
Aevann1
0705e96770
fds
2022-04-18 20:45:18 +02:00
Aevann1
762f5c5acc
gf
2022-03-21 23:46:10 +02:00
Aevann1
bf391394a8
bad PR
2022-03-05 22:53:39 +02:00
Aevann1
f1789d3bbe
search
2022-03-05 20:43:44 +02:00
Aevann1
35ec2a7712
fart
2022-03-05 00:46:20 +02:00
Aevann1
ddbb610142
regex
2022-02-27 23:57:44 +02:00
Aevann1
9bcc388712
fixed king
2022-02-26 23:03:38 +02:00
Aevann1
14c7148eed
fd
2022-02-24 10:28:13 +02:00
Aevann1
ec9797ff18
f
2022-02-16 00:54:17 +02:00
Aevann1
90fc18bcb8
xvc
2022-02-10 01:29:34 +02:00
Aevann1
8a37c6d118
vxc
2022-02-10 01:12:17 +02:00
Aevann1
c810421821
bv
2022-02-10 01:08:55 +02:00
Aevann1
022e300d2f
SDF
2022-02-06 12:54:05 +02:00
Aevann1
04a1b875ef
sfd
2022-02-04 11:15:59 +02:00
Aevann1
7854a563bd
dsf
2022-02-04 06:10:31 +02:00
Aevann1
b33b5d9c72
vxc
2022-01-28 22:13:18 +02:00
Aevann1
8f215d8f63
vc
2022-01-28 03:32:16 +02:00
Aevann1
29b9d73387
vc
2022-01-28 01:29:39 +02:00
Aevann1
cc9d1e180a
cxz
2022-01-28 01:29:24 +02:00
Aevann1
cfb33e90d8
vvvvvvvvvvvvvvv
2022-01-27 19:04:02 +02:00
Aevann1
b617163a1c
vvv
2022-01-17 13:06:12 +02:00
Aevann1
3ab53cad82
b
2022-01-14 14:04:35 +02:00
Aevann1
5255ead466
closing2
2022-01-11 23:54:41 +02:00
Aevann1
bf11097de9
bb
2022-01-11 22:21:50 +02:00
Aevann1
0f2eb87e31
bb
2022-01-11 00:43:00 +02:00
Aevann1
6357a86ecf
fds
2022-01-04 15:13:02 +02:00
Aevann1
c2631b3d71
fsd
2022-01-02 15:22:12 +02:00
Aevann1
e57368d141
fds
2022-01-02 02:15:55 +02:00
Aevann1
cd4e9b6932
fds
2021-12-29 10:09:43 +02:00
Aevann1
9604d9e2fa
fds
2021-12-29 09:08:10 +02:00
Aevann1
efff0400ef
fsfs
2021-12-20 02:27:25 +02:00
Aevann1
45b11cfc47
fggd
2021-12-19 23:41:57 +02:00
Aevann1
68bc992da1
sfdsdf
2021-12-19 15:01:28 +02:00
Aevann1
fc1bf3e057
fdsfsd
2021-12-15 01:38:07 +02:00
Aevann1
98b6cc7f22
sdfsfd
2021-12-14 20:35:56 +02:00
Aevann1
148bc94e4d
fdsfds
2021-12-06 18:26:56 +02:00
Aevann1
0ce036e13a
dfdf
2021-12-01 01:21:29 +02:00
Aevann1
9f62ea6351
fdfsd
2021-11-30 18:37:28 +02:00
Aevann1
c436424bd1
fdsfd
2021-11-30 16:23:34 +02:00
Aevann1
63f09542e5
fdsfds
2021-11-30 16:18:16 +02:00
Aevann1
694ffb4e83
badges
2021-11-21 19:40:47 +02:00
Aevann1
fceedfe94c
fdfd
2021-11-18 22:02:26 +02:00
Aevann1
f588c33ea5
fdssfd
2021-11-17 15:19:25 +02:00
Aevann1
961006d6c9
fd
2021-11-17 15:06:29 +02:00
Aevann1
4e3950e257
dfssdf'
2021-11-16 05:55:29 +02:00
Aevann1
fde8ceb751
sfdfsd
2021-11-16 00:19:59 +02:00