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
Albert Yi
6ca9b65716
add dynamic sitemap.xml
2018-10-11 10:13:54 -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
85ae2cda0d
optimization: prefer relation.none over relation.where("false")
...
Using `relation.none` instead of `relation.where("false")` avoids an sql query.
2018-08-23 15:21:51 -05:00
r888888888
344c46ed00
add mock recommender service for development, add user-context recommended posts
2018-07-21 14:02:57 -07:00
Albert Yi
9cfb629891
rename similar posts to recommended posts, refactor menu on posts/show
2018-07-20 16:36:14 -07:00
Albert Yi
df6e86551a
tweaks to similar posts
2018-07-20 15:05:51 -07:00
Albert Yi
75162d3d8b
bug fixes + tests
2018-07-20 12:31:28 -07:00
Albert Yi
d9a1eeacc9
Recommend posts on /posts/show based on voting patterns
2018-07-20 12:14:16 -07: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
e739dc77d7
fixes #3359
2017-11-10 17:44:53 -08:00
r888888888
546dfda6f3
truncate date to day
2017-11-10 16:28:34 -08:00
r888888888
8b1fca4662
add most viewed posts page
2017-11-10 16:21:01 -08:00
evazion
e6d1842545
/notes: default to listing notes, not posts. Remove group_by=post.
...
The posts listing is replaced by a link to order:note.
2017-04-23 14:59:36 -05: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
evazion
951e6d4b5f
Remove unused arbitrary_sql_order_clause.
...
Unused since f87c71c .
2017-02-06 19:07:04 -06: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
f87c71cf23
remove post view counts, add search counts
2015-07-27 17:27:40 -07:00
r888888888
cc6da3ff89
fixes #2454 : Add a new popular posts page for view counts
2015-07-24 15:56:41 -07: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
Toks
04fa5596e2
Favorite groups
2015-06-23 15:25:54 -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
r888888888
267df896c6
fixes #2245
2014-08-25 16:41:27 -07:00