Commit graph

182 commits

Author SHA1 Message Date
joshua stein
c2442a5881 add comments rss feed
The RSS view was already here but never setup in a controller.

Closes #202
2015-04-28 09:51:50 -05:00
joshua stein
8f8ad57135 export a json version of user page, include karma and about text 2015-04-09 21:05:50 -05:00
joshua stein
97c70d3efc don't do css link header hack in development 2015-04-01 01:05:50 -05:00
joshua stein
18e027feb9 add a short id redirector for comments 2015-04-01 01:02:22 -05:00
joshua stein
cb850bd9e6 recent comments: hide comments on user's hidden stories
closes #142
2015-03-13 00:31:34 -05:00
joshua stein
d286eab325 add option to show user avatars on stories and comments
just because
2015-03-12 23:23:15 -05:00
joshua stein
6695480fdb when auto-detecting story titles, try to find a canonical url and use it
should remedy duplicate stories being submitted under all of their
stupid blogspot.* domains instead of the canonical url represented
in the <link> tag
2015-03-10 17:41:40 -05:00
joshua stein
620389ab95 add /u/?moderators=1 to list all moderators and admins 2015-02-23 16:56:06 -06:00
joshua stein
7f3adc0e9d fix some fallout from previous 2015-02-13 11:26:28 -06:00
joshua stein
f9b309d342 separate story hiding from voting
A story downvote is considered a flag, just meaning the story has
problems and not necessarily that the user wants to ignore it.  By
moving hiding out of Vote and into a new HiddenStory model, a user
can now both downvote/flag and hide separately, or just one or the
other.
2015-02-11 11:37:03 -06:00
joshua stein
fe159cc3f7 try a speed hack using a Link: header for the stylesheet
probably only works in firefox though
2015-02-11 10:58:34 -06:00
joshua stein
8771afc5f5 try a bit harder at finding a submitted story's real title
Ignore the title presented by the user unless we couldn't find
anything, but start out by fetching the URL and trying some <meta>
tags first, then <title>, then use the title the user brought.
2015-02-03 11:20:07 -06:00
joshua stein
a16150d8a5 allow searching stories by domain, link domain in story list to such a query 2015-01-29 10:16:46 -06:00
joshua stein
1eb9413f8a user tree: show newest 10 users 2015-01-27 12:14:26 -06:00
joshua stein
e2afb9153c fix deleting messages sent to ones self 2015-01-15 13:23:31 -06:00
joshua stein
31df8973a8 Pushover: switch to subscriptions
users.pushover_device and users.pushover_sound columns can be
dropped once migrated
2015-01-15 13:23:31 -06:00
joshua stein
9c73c87d28 add story cache showing for manually-specified unavailable stories 2015-01-06 17:31:09 -06:00
joshua stein
624096a481 use _path instead of _url in a few redirect_to's 2015-01-02 18:33:13 -06:00
Serge Paquet
a1f5052f99 fix cancel button in comment forms 2014-12-14 01:24:18 -05:00
joshua stein
31d4e97858 implement hats
https://lobste.rs/s/bkeYe9/about_lobsters/comments/ZD2tL3#c_ZD2tL3
2014-11-14 14:12:29 -06:00
joshua stein
5497fbd7bb allow disabling public invitation requests through a setting 2014-10-03 17:19:00 -05:00
joshua stein
dfe6db4849 revert 85cb7c20, give up on planet rss aggregation 2014-08-31 20:35:41 -05:00
joshua stein
6329041ee8 tweak page title for /upvoted 2014-08-17 19:10:32 -05:00
joshua stein
e3f6a4edd8 Merge pull request #163 from walle/upvoted_fix
add /upvoted page to show a logged-in user's upvoted stories
2014-08-17 19:09:04 -05:00
joshua stein
ebdea913bf Merge pull request #168 from walle/issue_128
Add cancel button to comment editing.
2014-08-17 19:05:02 -05:00
Fredrik Wallgren
2ffe322f64 Rename by_user to newest_by_user and sort accordingly. 2014-08-17 14:18:23 +02:00
Fredrik Wallgren
ee8b50f9c0 Add cancel button to comment editing.
This should fix issue #128.
2014-08-16 18:37:36 +02:00
Fredrik Wallgren
ab8f8f3a72 Add upvoted route.
Upvoted route shows all stories a logged in user have upvoted
in reverse chronological order, latest upvote first.
It is not shown in the gui, but reachable at /upvoted.
2014-08-16 00:27:18 +02:00
joshua stein
bdbfedfb23 for normal requests to /login, save the referrer and redir back there
properly closes #164
2014-08-08 10:31:06 -05:00
joshua stein
243b29240a when redirecting to /login, save the url and params to redirect back to
closes #164
2014-08-08 10:16:06 -05:00
joshua stein
85cb7c2057 first stab at planet rss aggregation
could probably use a prettier layout and auto-posting a weblog url
to the main site (carrying tags)
2014-08-03 22:07:57 -05:00
joshua stein
8a3b133d87 style/wrapping 2014-08-03 22:07:56 -05:00
Andrey Chernih
fc52db5424 Refactor HomeController 2014-07-09 22:25:39 +04:00
joshua stein
9554423d4f tag pages should be ordered by created_at, not hotness 2014-06-30 11:56:40 -05:00
joshua stein
f3f10de295 bingbot is a bot too 2014-06-11 19:34:41 -05:00
joshua stein
1af0edd268 add a flat version of the user tree, ordered by karma 2014-05-06 21:29:45 -05:00
joshua stein
aab34a9936 embed timestamp in password reset token, only work for 24 hours 2014-04-15 00:46:14 -05:00
joshua stein
e152574003 ModerationsController: fix pagination 2014-04-13 22:40:11 -05:00
joshua stein
73b8df5eb7 implement story merging
closes #137
2014-04-08 17:51:12 -05:00
joshua stein
9d2253a010 heavily downvoted stories should never be on the home page 2014-04-06 20:43:16 -05:00
joshua stein
025558f6ad add support for /top and things like /top/3m and /top/2w
not linked to from anywhere yet

closes #95
2014-04-03 13:20:24 -05:00
joshua stein
3993e10109 HomeController: sort methods 2014-04-03 10:26:10 -05:00
joshua stein
7f9c227ed0 bring back story downvoting, remove low quality option
story hiding is still here, so hopefully this will result in less
bogus story downvotes
2014-03-24 10:26:06 -05:00
joshua stein
6cab668a2f simplify rss <link> generation 2014-03-12 17:50:51 -05:00
joshua stein
efe1353b87 update a user's unread message count after bulk-delete
only count messages that are both unread and undeleted
2014-03-06 15:27:13 -06:00
joshua stein
285fd82c16 check story tag permissions on editor, not creator 2014-03-06 13:54:30 -06:00
joshua stein
9535b05490 remove story downvoting, add story hiding
stories should either be reported for spam (coming later), upvoted,
or left alone rather than being downvoted for being uninteresting.
since users don't like leaving uninteresting things alone, they can
now hide stories from their view without affecting the story's
score.

hiding is implemented as a Vote with its vote set to 0 and the
reason set to "H"

add a /hidden url which shows all of a user's hidden stories

while i'm here, simplify Vote guts and add some tests to make sure
all the flip-flopping stuff works right
2014-03-03 17:20:21 -06:00
joshua stein
99c551cbfe move initial upvote of submitted story to Story model 2014-03-03 17:13:00 -06:00
joshua stein
95202f21b2 add Tag.active scope to deprecate tags without removing them 2014-02-21 10:57:30 -06:00
joshua stein
d0711892f6 messages: implement batch-delete function
closes #119
2014-02-19 13:31:48 -06:00