Commit Graph

35 Commits

Author SHA1 Message Date
r888888888
0bfd201973 simplify logic 2017-09-13 14:47:42 -07:00
r888888888
1f3bafc061 delegate removal from favorites and updating of user fav counts to delayed job 2017-09-13 14:19:54 -07:00
evazion
af42740ca9 expunge: decrement user favorite counts. 2017-09-13 13:29:35 -07:00
r888888888
d48ed95191 favoritescontroller#destroy should work even if the post doesn't exist, remove from favorites on expunge (fixes #3222) 2017-07-19 13:39:24 -07:00
evazion
c1834ab8dd Inherit models from ApplicationRecord instead of ActiveRecord::Base. 2017-06-16 13:28:31 -05:00
evazion
40feeb2411 Post#give_favorites_to_parent: fix exception (fixup 77793759)
Forgot the `belong_to :user` association in 77793759.
2017-04-04 20:42:31 -05:00
r888888888
bb3eb9f980 favoriting now triggers an upvote 2016-02-22 17:02:15 -08:00
r888888888
fb67525c28 add intro route shortcut, optimize Favorite.remove 2015-12-08 15:17:27 -08:00
r888888888
ab325d48bf optimize favorite delete, ignore statement timeout when expunging posts #2556 2015-12-07 14:53:15 -08:00
r888888888
1253592dc9 fixes #1210 2014-06-22 20:12:06 -07:00
r888888888
e15fb6eac9 Revert "potential fix for #1210"
This reverts commit d5f10f41fd.
2014-06-22 19:43:17 -07:00
r888888888
d5f10f41fd potential fix for #1210 2014-06-20 16:33:29 -07:00
r888888888
fad0ab7c93 fixes #2133 2014-04-16 17:43:34 -07:00
Toks
e8b92781c4 Use transaction when favoriting to prevent post from being half-favorited 2014-04-11 14:50:34 -04:00
r888888888
48ae3bcefd fixes #2116 2014-03-27 15:29:16 -07:00
Toks
4c520c1d16 fix score seeming to increase for member favoriting 2013-06-11 09:38:15 -04:00
r888888888
61f8c38d34 fixes #952 2013-06-10 18:12:57 -07:00
r888888888
7db85d8301 Merge branch 'master' into close-accounts 2013-05-16 14:16:47 -07:00
r888888888
8ba43c8cd1 fix regression with tag post counts 2013-05-06 18:15:27 -07:00
r888888888
890e11f532 potential fix for #1500 2013-05-06 13:33:04 -07:00
r888888888
51a62a8df6 add support for deleting user accounts 2013-04-29 22:47:08 -07:00
r888888888
d5f575159f rename references of privileged to gold 2013-04-28 00:04:52 -07:00
r888888888
00034f1a17 refactored favorites 2013-04-18 20:19:11 -07:00
小太
cba839ba76 Kill trailing whitespace in ruby files 2013-03-19 23:10:10 +11:00
albert
073ab8ee96 * Fixed favorites deletion
* Fixed parenting when dealing with post deletion
2012-01-06 18:20:18 -05:00
albert
cce3fe0b64 added constraint for fav search 2011-11-16 13:12:02 -05:00
albert
e42ea9c608 added popular exploration, added order:rank 2011-08-11 15:39:51 -04:00
albert
469ae14805 fixed tests, implemented sql based partitioning for favorites 2011-07-16 20:16:34 -04:00
albert
2f1fdcb459 more work on paginators 2011-06-21 14:32:07 -04:00
albert
f67374da83 * Some major bug fixes related to post sets. Tests for pools and favorites were added.
* Refactored the favorites code a bit. Adding a favorite from either an user or a post now works and will update all necessary records.
2011-06-07 19:06:39 -04:00
albert
49b3d43ddd * meta_search now pulls directly from GitHub
* Updated gems
* [inprogress] New pagination helpers used instead of pagination presenters
* [inprogress] Favorites refactored to use ActiveRecord
* [inprogress] PostSets refactored to use a decorator/dependency injection pattern
* [inprogress] Made pool/post interaction more robust
* Pool#posts now returns an ActiveRelation object
* Fixed unit tests
2011-06-07 17:34:09 -04:00
albert
435d3bf6e2 fixed user tests 2011-06-05 04:05:21 -04:00
albert
e9c2d1e636 added artists, comments 2010-02-15 13:59:58 -05:00
albert
661c214094 added favorite unit tests 2010-02-12 18:46:43 -05:00
albert
bed94a4e30 updated tag unit tests 2010-02-11 14:59:58 -05:00