evazion
ac259859f9
search: don't error out on source:*pixiv* searches.
2019-08-21 23:33:49 -05:00
evazion
0b14146f6a
posts: hotfix bug in /posts.json?tags=blah+order:random.
2019-08-19 18:51:33 -05:00
evazion
59b277ead1
users: drop id_to_name, name_to_id caching.
...
Changes:
* Drop Users.id_to_name.
* Don't cache Users.name_to_id.
* Replace calls to name_to_id with find_by_name when possible.
* Don't autodefine creator_name in belongs_to_creator.
* Don't autodefine updater_name in belongs_to_updater.
* Instead manually define creator_name / updater_name only on models that need
to return these fields in the api.
id_to_name was cached to reduce the impact of N+1 query patterns in
certain places, especially in api responses that return creator_name /
updater_name fields. But it still meant we were doing N calls to
memcache. Using `includes` to prefetch users avoids this N+1 pattern.
name_to_id had no need be cached, it was never used in any performance-
sensitive contexts.
Avoiding caching also avoids the need to keep these caches consistent.
2019-08-18 11:24:42 -05:00
evazion
798d524e60
Post#tag_match: clean up read_only param.
...
* Drop /posts?ro=true param (broken).
* Clean up tag_match (rescuing PG::ConnectionBad didn't do anything, we
just build the query here, we don't run it).
2019-08-16 00:26:00 -05:00
evazion
14da425564
search: reduce queries in single tag searches ( #4120 ).
...
Avoid some queries used in wiki page excerpts:
* Only try to load the artist if the tag is an artist tag.
* Avoid using `exists?` queries for wiki pages.
* Bugfix: don't show wiki excerpts for deleted wikis.
2019-08-12 13:38:45 -05:00
evazion
efc5487dd6
Fix #4109 : Censored images leaked in og:image attribute.
2019-07-31 21:47:31 -05:00
Albert Yi
5d3f072a2f
fix wiki excerpt links
2018-10-22 13:15:33 -07:00
r888888888
77cc4ad625
marginally smarter PostSets::Post#best_post algorithm
2018-10-20 20:08:42 -07:00
r888888888
192ac128cd
add additional meta tags for seo
2018-10-20 17:15:29 -07:00
evazion
03abbd0683
Fix #2894 : Use [[:space:]] instead of \s in regexes.
2018-09-20 19:24:38 -05:00
evazion
6fe883c316
posts index: clean up limit:<n> / order:random parsing ( #2894 )
...
* Move the limit:<n> / order:random metatag parsing from the controller
to the post set.
* Introduce `Tag.has_metatag?` and use it to parse these metatags
instead of using a regex (#2894 ).
2018-09-20 19:23:47 -05:00
evazion
f710710cbb
PostSets::Post#hide_from_crawler?: hide all metatag searches from crawlers.
2017-12-31 12:27:05 -06:00
evazion
f9ffa2b47a
Fix #3484 : /posts: don't show wiki tab for metatags.
2017-12-31 12:25:17 -06:00
BrokenEagle
839f0f653f
Changed safe mode error message for Gold+ users
...
- Made explicit the error messages and their order
- Banned takes priority, then Gold+, then Safe
- Made the groups exclusive of each other
2017-12-05 19:08:01 -08:00
r888888888
97da8f8647
deprecate tag subscriptions with warnings
2017-04-14 16:00:20 -07:00
evazion
90cd029f6f
wiki excerpts: show alias/implication lists even for tags without a wiki.
2017-03-23 03:54:42 -05:00
evazion
eda97dc1ff
/posts: add notice when posts are hidden.
2017-03-17 00:08:48 -05:00
r888888888
bfa56a860c
fixes #2415 : "Random post" causes RecordNotFound exceptions
2017-01-18 14:12:12 -08:00
Albert Yi
0ab45ebc42
add postarchive model, fixes #2831 : Replace Subscriptions Link With Search:All Link
2017-01-11 11:39:14 -08:00
r888888888
4b24a5cb7e
update to rails 4.2.5.1, add debugging info for tracking slow queries
2016-02-23 16:34:33 -08:00
r888888888
c63d092e64
add markup for google sitelinks search box
2016-02-04 14:16:37 -08:00
r888888888
1207a39b66
hide pages from crawler for degenerate queries
2016-02-04 14:10:44 -08:00
Toks
16ea72df01
#2132 Also hide wiki excerpt
2016-02-02 12:25:49 -05:00
r888888888
9d3d7abedc
add support for read only post queries
2016-01-25 16:40:23 -08:00
r888888888
6ad6aa44c4
fixes #2432 , fix tests
2015-07-14 15:13:04 -07:00
Toks
6829a370b2
add favgroup excerpt
2015-06-29 15:44:21 -04:00
r888888888
29a7b51fcb
add additional search links in reports, fix order:random for post count=0
2015-06-18 17:17:24 -07:00
Toks
af86099ac5
#1938 remove duplicates
2015-06-02 11:12:47 -04:00
Toks
1949a48070
#1938 fill in blank spots
2015-05-30 18:01:03 -04:00
Toks
599548ac04
potential fix for #1938
2015-05-30 17:31:32 -04:00
Toks
a5feec8ec6
#1938 remove duplicates, remember &random and &raw params
2015-05-18 14:10:44 -04:00
Toks
0d24a45855
fixes #1938 , Add special random parameter
2015-05-17 20:06:31 -04:00
Toks
c082ed18ce
Fix deleted posts link not being visible to basic members
2014-10-18 02:05:51 -04:00
evazion
ee87fbd56f
Show Pool excerpt for ordpool:1234 searches.
2014-10-13 18:15:38 -05:00
Toks
2b3909496a
Fix detection of tag wildcard searches
2014-07-30 16:29:55 -04:00
r888888888
aab03422bc
performance tweaks for rails 4.1
2014-04-24 22:24:42 -07:00
r888888888
90f3156a73
fixes #2132
2014-04-17 14:17:11 -07:00
r888888888
fad0ab7c93
fixes #2133
2014-04-16 17:43:34 -07:00
Toks
ace1975704
#1140 : Remove order metatag when picking reltag method
2013-12-09 12:43:27 -05:00
Toks
cc2443e3af
Prevent unnecessary wiki page queries for multi-tag searches
2013-12-09 12:25:16 -05:00
Toks
8641509deb
Fix unnecessary artist queries for multi-tag searches
2013-12-08 12:17:48 -05:00
Toks
fed48da2df
Fix error when searching for pool that doesn't exist
2013-10-09 14:01:32 -04:00
Toks
23f96f7608
fixes #2000
2013-10-06 17:37:31 -04:00
Toks
e3211441fb
fixes #1891
2013-09-17 12:05:07 -04:00
Toks
b81804306e
Fix artist excerpt with wildcard searches
2013-08-09 13:25:37 -04:00
Toks
02944851fc
fixes #1900
2013-07-27 11:34:45 -04:00
Toks
e09b4fb27a
Clean up excerpts
2013-07-09 14:01:22 -04:00
Toks
3afcd48925
fixes #1734
2013-07-09 13:03:51 -04:00
Toks
83c6428208
artist excerpt
2013-07-07 19:04:27 -04:00
r888888888
d70a7c4ef8
fixes #1126 , raw tag search is accessible via tag alias correction page, can manually tack on raw=true to parameters in post searches to disable tag aliases
2013-06-13 14:35:26 -07:00