joshua stein
94ce8cbcc0
clarify hat rules
2016-04-12 11:49:10 -05:00
joshua stein
2e1f8d9f33
hats: don't require a logged-in user to browse hats
...
closes #282
2016-04-06 15:23:22 -05:00
joshua stein
d88b03b4b3
add some more bot UAs
2016-04-06 13:22:37 -05:00
joshua stein
a5928b675d
implement hats list and request/approval system
...
closes #281
2016-04-06 13:19:46 -05:00
joshua stein
e515caaea1
don't increase traffic for tor users
2016-03-22 14:07:39 -05:00
joshua stein
28bbc9c8f7
moderators have to provide a reason for deleting others' comments
2016-02-10 08:57:38 -06:00
joshua stein
9e238647e0
print any meta tags in @meta_tags in layout, add twitter ones for story pages
2015-12-31 09:13:34 -06:00
joshua stein
5129733b04
when showing another user's threads, don't include story threads
2015-12-18 10:51:01 -06:00
joshua stein
6b636ac8c5
add setting to show threads on a user's submitted stories in 'Your Threads'
...
closes #231
2015-12-07 12:27:09 -06:00
joshua stein
9f9e608fc8
fix fetched_attributes fallout
2015-12-03 14:57:33 -06:00
joshua stein
45b63935af
Story: move fetched_* stuff into a single fetched_attributes
2015-12-02 13:46:19 -06:00
joshua stein
c354485916
when a non-banned, deleted user logs in, reactivate their account
2015-11-18 12:08:45 -06:00
joshua stein
97dac71389
tags: set @title
...
tweak @title of filters controller
2015-11-09 10:01:43 -06:00
joshua stein
09fd14dd93
add a tag cloud thingy
...
closes #236
2015-11-09 09:52:32 -06:00
joshua stein
d44d43e551
fix dup/clone confusion
2015-10-18 15:09:39 -05:00
joshua stein
77568760a2
don't show suggestion flash if user didn't do anything
2015-10-17 10:43:11 -05:00
joshua stein
1d30378877
clone, not dup
2015-10-17 08:03:33 -05:00
joshua stein
a4e3f04d2d
Story: do automatic user suggestion promotion for story titles too
...
It's much less likely that users will all agree on an exact title
name, but try it anyway.
2015-10-16 18:28:57 -05:00
joshua stein
2ca2c94ef6
allow messages to come from system instead of a user
2015-10-15 10:01:42 -05:00
joshua stein
e940601a2f
start on automated story title and tagging suggestions
...
Rather than keep "poorly titled" and "poorly tagged" as reasons for
flagging, make the user do the work of suggesting new ones.
At some point, suggested taggings will flip to real taggings once
they reach a certain count (to be determined later). This also has
to take into account tagging sets that don't contain current tags,
for when they need to be removed.
For titles, I'm not yet sure how to handle this in an automated
fashion except for the (probably rare) case of multiple users
submitting the same exact thing, but at least collect them for now.
Issue #207
2015-10-14 20:32:24 -05:00
joshua stein
1c789fbae0
add /chat page
2015-10-11 13:04:16 -05:00
joshua stein
677da599f2
login: if user password hash is not at current rounds, re-encrypt it
2015-10-11 13:04:16 -05:00
joshua stein
5567bb0b7e
when resetting a password, if user is deleted but not banned, undelete
...
Also mention on the login screen that a deleted account can be
recovered this way.
Closes #221
2015-09-06 15:00:20 -05:00
joshua stein
7d1231cec3
remove css hack
2015-08-12 09:25:51 -05:00
joshua stein
0c4a88e284
export some more things through json
2015-08-04 09:58:47 -05:00
joshua stein
27e2f0e5e5
fix magical path to sprockets manifest for our stupid hack
2015-07-31 12:53:28 -05:00
joshua stein
81b3be6165
add setting to show inline story previews in story list
...
Closes #148
2015-07-30 17:56:09 -05:00
joshua stein
0d61e0cf68
add "i am the author of this" checkbox for stories
...
Highlights username in a different color and says "authored by"
instead of just "by".
Move html class printing into a method in Story to use in the future
for friends, admin posts, etc.
Closes #171
2015-07-30 17:15:48 -05:00
joshua stein
ecb20668ce
SignupController: add an explicit action for invite
2015-07-24 00:51:11 -05:00
joshua stein
cbc1c50cd2
add user banning/unbanning from user view page
2015-07-24 00:51:11 -05:00
joshua stein
6eca2ed75d
set ceiling for traffic counter
2015-07-24 00:51:11 -05:00
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
joshua stein
c90486b813
invitation requests: allow moderators to delete confirmed requests
2014-02-19 13:16:23 -06:00
joshua stein
78d9734c26
invitation requests: use a proper form_for, highlight errors
2014-02-19 13:16:16 -06:00
joshua stein
89cdf1101a
add a story-only mailing list mode
...
closes #131
2014-02-19 12:49:12 -06:00
joshua stein
67fc2cc75c
set maximum time during which comments and stories can be downvoted
...
always allow a user to "unvote" if they're previously downvoted, but
after a certain number of days, don't accept new downvotes
there isn't really any benefit in downvoting old stuff that is
already off the front pages or on a dead comment thread, other than
to maliciously strip karma for particular users
2014-02-17 12:08:01 -06:00
joshua stein
0d6f4ed60c
fix story pagination and caching for logged-out users
...
use a file store so each unicorn process can share the same set of
files (using redis would probably be cleaner)
put page number into how hash when creating the cache key
2014-02-16 09:57:05 -06:00
joshua stein
2da624e592
use Rails.env.development?
2014-02-05 21:01:49 -06:00
joshua stein
a85fbe4ff1
bring back moderation_reason for moderators
2014-02-05 21:01:49 -06:00
Serge Paquet
70a70096db
fix improper usage of strong parameters in FiltersController
2014-02-05 17:02:12 -05:00
Serge Paquet
9013afa43b
do not permit story moderation_reason to pass mass assignment security
2014-02-03 17:14:49 -05:00
Serge Paquet
519427586a
use Rails4-style strong parameters mass assignment protection
2014-02-02 15:41:38 -05:00
joshua stein
9fb9a6f116
fix /recent behavior when there aren't enough stories to fill the list
...
keep walking back a day at a time
(might want to do this quicker though)
2014-02-01 03:39:58 -06:00
joshua stein
df75c8f787
revert to previous /newest behavior, use new stuff for /recent
...
/recent is not yet linked to from anywhere
2014-01-25 11:14:21 -06:00
joshua stein
8dbc0e4724
simplify story finding
2014-01-25 10:38:07 -06:00
joshua stein
35f43ea10c
start experiment with /newest page
...
on the first page of /newest, shift out stories that got enough
traction that they're probably on the front page (currently 5
points)
then take the bottom half of the list and fill it with random,
unpopular stories from the past few days (currently 3)
2014-01-24 13:55:21 -06:00
joshua stein
20cf2bab65
show how many stories have been tagged with each on filters page
...
closes #93
closes #114
2014-01-24 13:53:10 -06:00
joshua stein
e6ce3a5d68
show full story threads when highlighting a comment
...
we're not paginating (yet) so just show the whole thread like normal
and highlight the specific comment which gets scrolled to
closes #107
2014-01-20 23:30:46 -06:00
Serge Paquet
79b64c3883
use standard create/update comment routes
2014-01-20 16:52:19 -05:00
Serge Paquet
41c9dfad5d
fix DOM structure when replying to or updating comments
2014-01-20 16:52:19 -05:00
Serge Paquet
02a30c66b1
optimize database queries for "Your Threads" page
2014-01-20 16:44:14 -05:00