edogawaconan
|
697bbea8a2
|
Replace explicit require with autoloader.
|
2014-11-20 17:50:28 +09:00 |
|
Edho Arief
|
38da9b9830
|
Another update to PostVotes (rename to PostVote).
|
2012-08-29 08:43:08 -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
|
cdd6a8f887
|
overriding to_json is now done by overriding as_json.
|
2012-05-30 22:43:28 +07:00 |
|
Edho Arief
|
3699826902
|
First step into arel (post/api_methods)
|
2012-05-30 22:05:31 +07:00 |
|
petopeto
|
ad7eda34e1
|
include flag_detail in api for pending posts
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%401069
|
2011-02-28 01:46:44 +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
|
cc50b95c96
|
allow returning pool and pool_post info from the post API
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40951
|
2010-12-20 00:27:03 +00:00 |
|
petopeto
|
0fa5cd24d5
|
json bindings for post/similar API (not yet well tested); returns the search ID to allow redirecting to post/similar.html
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40914
|
2010-12-17 06:10:07 +00:00 |
|
petopeto
|
17c9ec4aa0
|
working on editable post frames; no UI for creating them yet but they're viewable in the browser
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40857
|
2010-12-12 23:57:38 +00:00 |
|
petopeto
|
ae9672d659
|
having a flag_detail for flagged and deleted posts isn't enforced by the database; don't assume we have one
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40819
|
2010-12-09 23:16:45 +00:00 |
|
petopeto
|
ce45147568
|
include tags and votes in Post.batch_api_data by default and specify when it's not wanted, since we always want this data except by default for post/index (since that's where we're most likely to load lots of posts at once); include votes for the current user by default so we don't have to pass it down everywhere
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40804
|
2010-12-09 21:11:16 +00:00 |
|
petopeto
|
3e6601d320
|
fix exception if posts is empty due to invalid SQL generated; 'x IN ()' should really be allowed
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40799
|
2010-12-09 20:40:08 +00:00 |
|
petopeto
|
947610a5aa
|
allow including votes in api results
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40795
|
2010-12-09 20:21:59 +00:00 |
|
petopeto
|
28bc506fad
|
rename Tag.batch_get_tag_types to Tag.batch_get_tag_types_for_posts; Tag.batch_get_tag_types now takes a list of tags
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40790
|
2010-12-09 02:39:03 +00:00 |
|
petopeto
|
3c25dde78d
|
return time in epoch; simpler and IE7 is better at it
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40692
|
2010-11-30 05:31:15 +00:00 |
|
petopeto
|
973b578806
|
return post data after post/moderate.json
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40674
|
2010-11-30 02:54:59 +00:00 |
|
petopeto
|
27536fad5c
|
return updated post data after post/flag api
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40670
|
2010-11-30 02:23:40 +00:00 |
|
petopeto
|
f0630cc738
|
fix created_at in post/index JSON output
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40640
|
2010-11-29 16:43:59 +00:00 |
|
petopeto
|
b1e0b85174
|
don't include post urls for deleted posts in the api
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40626
|
2010-11-29 03:27:20 +00:00 |
|
petopeto
|
ffbc05f750
|
expose Post.is_held
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40624
|
2010-11-29 03:02:16 +00:00 |
|
petopeto
|
1661a66344
|
fixup, cleanup flag user_id hiding
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40623
|
2010-11-29 02:56:46 +00:00 |
|
petopeto
|
741a23948f
|
include flag_detail for deleted posts; hide the user_id for non-mods, since we do that in post/show
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40622
|
2010-11-29 02:53:02 +00:00 |
|
petopeto
|
e884269f4f
|
use reverse_merge in to_xml, not merge, so if the caller specifies a root we'll use it
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40522
|
2010-11-23 00:39:59 +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
|
7c7fb6bcf0
|
include flag details in post info for flagged posts
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40364
|
2010-11-15 23:12:39 +00:00 |
|
petopeto
|
ae5ec4bff7
|
experimental: generate thumbs in higher res
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%40342
|
2010-11-14 22:50:58 +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
|
30ff4fccd3
|
--HG--
branch : moe
extra : convert_revision : svn%3A2d28d66d-8d94-df11-8c86-00306ef368cb/trunk/moe%405
|
2010-04-20 23:05:11 +00:00 |
|