Carl Chenet
9b22508225
i18n of controller/filters_controller
2016-11-15 17:34:00 +01:00
Carl Chenet
dff09bbc12
i18n of controller/search_controller
2016-11-15 17:30:30 +01:00
Carl Chenet
a587e2d32c
i18n of controllers/comments_controllers
2016-11-15 17:26:01 +01:00
Carl Chenet
8def5c46da
fix bad path to stories_controller
2016-11-15 17:14:37 +01:00
Carl Chenet
516edc5038
i18n of controllers/stories_controllers
2016-11-15 17:11:32 +01:00
Carl Chenet
286f25e712
i18n of controllers/home_controllers
2016-11-15 17:05:42 +01:00
Carl Chenet
cee4920216
Merge branch 'lobsters313'
2016-11-08 16:09:17 +01:00
joshua stein
de4df43c7c
not using tor anymore, add some more bot UAs
2016-11-03 16:19:39 -05:00
joshua stein
cf6ac62827
decrement traffic faster
2016-10-30 13:10:29 -05:00
joshua stein
955c52b5bb
clamp pagination
...
avoids a sql error when trying to offset a huge number
2016-08-19 00:00:18 -05:00
Carl Chenet
04777f3e6f
i18n of settings controller
2016-07-09 14:31:32 +02:00
chaica
9506b1ce10
I18n moderations ( #301 )
...
* translate moderation view, controller and model
* support for i18n in the moderation controller
* support for i18n in the moderation model - use interpolation for variables inside strings
* support for i18n in controller model - localize time and date string format for printing time and date of the moderation action
2016-07-05 10:02:14 -05:00
joshua stein
6a637dfe83
signup: also send total users to countinual now that they're being tracked
2016-06-28 09:53:44 -05:00
joshua stein
d8c7f98cfd
prevent users with much negative karma from submitting new stories
2016-06-22 15:30:44 -05:00
joshua stein
ac3347b9cc
1 in 2 million!
2016-06-18 19:25:57 -05:00
joshua stein
b391a8d527
speed up traffic decrementer
2016-06-10 16:35:32 -05:00
nyanpasu
39b911963e
Remove redundant return
2016-05-16 11:55:16 +08:00
nyanpasu
aa0ffeb37b
Allow admin/moderator to disable user from inviting
2016-05-16 02:40:46 +08:00
joshua stein
4c5cf4a542
require a minimum karma to suggest story title/tag suggestions
2016-05-02 17:57:19 -05:00
joshua stein
98ab3796b3
add simple @titles for about, chat, privacy
2016-05-02 17:56:16 -05:00
David R. MacIver
0f38779d7a
Add RSS and JSON feeds for newest by user
2016-04-29 17:41:14 +01:00
Peter Bhat Harkins
b886ea1413
Clean up mysqlism (booleans are also usable as int(1)) ( #285 )
...
Clean up mysqlism (booleans are also usable as int(1))
2016-04-23 21:20:10 -04:00
joshua stein
0e90347956
stories: include url to big icon in twitter card
2016-04-14 11:18:44 -05:00
Peter Bhat Harkins
bfe7a67156
Don't 500 if someone hasn't added a chat template
2016-04-12 21:34:04 -05:00
joshua stein
239379ea51
shrink TRAFFIC_DECREMENTER
2016-04-12 11:49:36 -05:00
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