Edho Arief
fb308e6c86
Removed unused function.
2012-11-12 00:32:31 +07:00
Edho Arief
d8549e7aa7
Merge from -release.
...
--HG--
rename : lib/core_ext/string.rb => lib/core_ext/ext-string.rb
2012-10-19 09:19:01 -07:00
Edho Arief
168c7505db
Use to_escaped_for_tsquery to build the tsquery.
...
--HG--
branch : 3.2.0-release
2012-10-14 16:45:51 +07:00
Edho Arief
419f2d2035
An actually random ordering.
2012-08-29 05:14:27 -07:00
Nurahmadie
9875363f84
Escape '%'
...
Unescaped '%' resulted in silly (and unnecessary?) error at post searching.
With this patch, begin - rescue block surrounding Post.fast_count call
might not needed anymore, ie. No need to warn end user for strange error there,
since the other search controller actually doesn't do that.
--HG--
branch : 3.2.0-release
extra : rebase_source : 1cc89fa80ecd9dbaa07daf1f94c90737096256ec
2012-07-19 08:58:58 +07:00
Edho Arief
3f562748b1
Replaced tabs with spaces. Mostly 8 spaces.
2012-06-04 18:45:53 +07:00
Edho Arief
872ddaea4e
Whitespace cleanup using find/sed.
...
find . -type f -exec gsed -i -r 's/ +$//' {} \;
2012-06-04 17:13:54 +07:00
Edho Arief
40315470d9
sanitize_sql => sanitize_sql_array
...
--HG--
extra : rebase_source : 7fe063eb6fcb2a072aac3f7edee3f23789e93d58
2012-03-04 15:55:36 +00:00
petopeto
9152961843
add CONFIG["hide_pending_posts"], to hide pending posts like held posts
...
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%401051
2011-02-23 02:11:09 +00:00
petopeto
27be087679
remove post.pool_post from API, which is limited to the pool being searched for; use Post.batch_api_data instead
...
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40955
2010-12-20 00:40:05 +00:00
petopeto
272c744c91
holds:false to hide posts, for the api where the default is holds:all
...
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40732
2010-12-02 06:54:24 +00:00
petopeto
6d67216c32
fixup filtering deleted
...
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40689
2010-11-30 05:20:29 +00:00
petopeto
c30ab84725
if an id:12345 search is done, default to not filtering deleted posts
...
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40672
2010-11-30 02:51:28 +00:00
petopeto
0ca3b65bcf
set searches, eg. id:1,2,3,4,5
...
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40458
2010-11-18 20:47:53 +00:00
petopeto
ff1dffe5c6
add portrait_pool order; this is only meant to be used internally by pool/show
...
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40456
2010-11-18 20:22:08 +00:00
petopeto
c98226d36c
deleted:yes to not filter based on deleted at all (unlike deleted:true, which shows only deleted), analogous to holds:true
...
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40455
2010-11-18 20:19:17 +00:00
petopeto
47716b802a
fix q[:order] creates an empty :order, breaking things if the same query is used more than once
...
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40454
2010-11-18 20:10:19 +00:00
petopeto
88dec31207
:show_deleted to show all posts, deleted or not
...
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40453
2010-11-18 19:53:50 +00:00
petopeto
2db519db2d
include the whole PoolPost relevant to the post when doing a pool: search, not just the sequence
...
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40452
2010-11-18 19:39:33 +00:00
petopeto
e353702c07
case-insensitive source search
...
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40301
2010-10-27 21:35:42 +00:00
petopeto
7bb0f8c15e
partial merge from r1915 removes options[:order] default (this looks dangerous); omitted the favcount sort since we don't use favorites
...
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40289
2010-10-15 01:11:57 +00:00
petopeto
11dc113c35
r1888, r1904: "fixed artist/show" which we don't need but brings in Post.find_by_tag_join
...
and affects wiki and pool, too
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40287
2010-10-15 01:09:19 +00:00
petopeto
39731d1410
fix sql errors when array contains empty elements, eg. from ' abc'.split(/ /)
...
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40230
2010-10-09 22:34:18 +00:00
petopeto
472275ca99
r1824: rename favtag to subscriptions for some reason
...
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40149
2010-09-07 03:25:28 +00:00
petopeto
74c1ec19fd
r1807 favtags fixes
...
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40134
2010-09-07 02:56:32 +00:00
petopeto
00badb870d
r1803 favtags updates
...
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40132
2010-09-07 02:54:04 +00:00
petopeto
a9d796c568
remove debug
...
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%4099
2010-09-06 07:55:09 +00:00
petopeto
ea3115c05a
merge FTS index for tag searching. We don't really need this since we're not as search-bound as Danbooru, but it's handy for other things.
...
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%4098
2010-09-06 05:35:59 +00:00
petopeto
63d1cc06a2
remove pool_posts
...
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%4080
2010-09-03 21:45:33 +00:00
petopeto
46be3dcee1
fixup pool_posts:orig
...
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%4036
2010-08-26 21:25:42 +00:00
petopeto
70d401f2f9
another temp helper: pool:*
...
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%4035
2010-08-26 21:19:46 +00:00
petopeto
56fb6fb141
temporary helper: allow pool_posts:master and pool_posts:slave
...
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%4034
2010-08-26 21:17:48 +00:00
petopeto
f549ed606b
include pool sequence numbers in pool/show API and post/index (when a pool: search is done)
...
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%4020
2010-06-15 06:49:05 +00:00
petopeto
7f8dea877c
filter by file extension
...
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%4018
2010-05-02 23:02:19 +00:00
petopeto
30ff4fccd3
--HG--
...
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%405
2010-04-20 23:05:11 +00:00