Commit graph

536 commits

Author SHA1 Message Date
Karl McGuire
df13d877e6 fixed tab 2015-02-17 12:38:53 -05:00
Karl McGuire
6f04c594d6 drove me insane 2015-02-17 12:37:18 -05: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
7d15b5db6d tldr, didn't comment 2015-02-09 23:11:25 -06:00
joshua stein
270401db3f comment: show downvote summaries to moderators 2015-02-07 12:23:51 -06:00
joshua stein
975e35d006 Search: escape @, it has special meaning to sphinx 2015-02-05 09:55:41 -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
00d347c4f4 consolidate sql fragment to cast story/comment score 2015-01-28 15:02:40 -06:00
joshua stein
1eb9413f8a user tree: show newest 10 users 2015-01-27 12:14:26 -06:00
joshua stein
bf928cf62b Story: take hotness window back down to 36, 48 is a bit stale 2015-01-27 12:14:26 -06:00
joshua stein
c94fd60f77 draw hats a bit higher up 2015-01-27 12:14:26 -06:00
Curtis McEnroe
c3d44280d3 Add explanation of traffic number in logo title
Since it keeps getting asked: https://lobste.rs/s/gve5zg/why_does_the_lobsters_l_icon_change_color
2015-01-26 14:05:15 -05: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
f1cfe29b1f fix initial story hotness
Initial story hotness was zero, which excluded stories with no other
upvotes from the homepage.  Before creating, define initial hotness
to something.

Since this now makes very new stories show up on the homepage right
away, expand the window back to 48 hours.

This requires a Story.recalculate_all_hotnesses! to properly sort
things.
2015-01-13 13:00:55 -06:00
Jordi Gutiérrez Hermoso
593222dacb Give textareas a default background colour.
My default background colour for textareas is inherited from my OS
colours, which is a dark grey. Thus setting a foreground colour
without setting a background colour makes it impossible for me to type
in textareas. This patch should fix that.
2015-01-12 10:21:14 -05:00
joshua stein
d01e9f3c3f better links for search result pagination
closes #69
2015-01-11 12:59:42 -06:00
joshua stein
4b768e2f42 Search: clamp results to Sphinx's max_matches
Otherwise this will annoyingly raise an exception when fetching
results if offset exceeds max_matches
2015-01-11 12:59:41 -06:00
joshua stein
2c3b155862 disclose per-tag hotness modifiers 2015-01-06 17:31:45 -06:00
joshua stein
88709b5d04 move story tagging sorting into a function 2015-01-06 17:31:44 -06:00
joshua stein
d2e06ed127 css: color media tags blue, add announce to red tags 2015-01-06 17:31:44 -06:00
joshua stein
9c73c87d28 add story cache showing for manually-specified unavailable stories 2015-01-06 17:31:09 -06:00
joshua stein
5efe3ce6c3 make time_ago_in_words_label actually do what was intended 2015-01-06 14:08:15 -06:00
joshua stein
624096a481 use _path instead of _url in a few redirect_to's 2015-01-02 18:33:13 -06:00
joshua stein
9f5e04bbba use _path for most things instead of _url
Instead of hard-coding the scheme and host everywhere, use _path
methods to show relative URLs.

Except that our previous setting of
Rails.application.routes.default_url_options in
config.after_initialize made this moot because Rails inserts that
host into all _path helpers for some reason.  So revert that
setting.

But then anything that wants an absolute URL doesn't know the
hostname and the root_url helper throws an exception.  So make a
Rails.application.root_url shortcut to pass the per-app settings in
Rails.application to root_url.

Now we can just use _path helpers most places but still use _url
ones where we need them, such as in RSS views and e-mail templates.
2015-01-02 17:02:55 -06:00
joshua stein
439f5702ee show a byline for for merged stories 2015-01-01 18:54:26 -06:00
joshua stein
3e5473229d fix code line height in comments 2015-01-01 10:25:36 -06:00
joshua stein
c151fbeeb8 better tag hotness mod calculation 2015-01-01 10:25:14 -06:00
joshua stein
1cc16ecfbf tweak code formatting 2014-12-15 15:06:53 -06:00
joshua stein
606f5c9849 experiment with factoring comment scores into story hotness
might keep an active story alive on the front page and bury a story
with a "comment graveyard"
2014-12-15 15:06:53 -06:00
joshua stein
73f93ba09d cater to chrome on android 2014-12-15 15:06:53 -06:00
joshua stein
5c1cc0ae38 Hat: if link isn't a url, don't href to it (probably shouldn't call it link then) 2014-12-15 15:06:53 -06:00
Serge Paquet
a1f5052f99 fix cancel button in comment forms 2014-12-14 01:24:18 -05:00
joshua stein
ddb9215aa0 log a moderation when hats are granted, since we're open and all that 2014-11-15 09:52:29 -06: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
4b0caa2752 fix display of comment box after editing and posting
should close #178
2014-11-14 14:02:16 -06:00
joshua stein
d6447ac249 comment view: ignore multiple clicks on "reply" link 2014-11-14 13:49:00 -06:00
joshua stein
f161af71b1 minor spacing nit 2014-11-14 12:48:00 -06:00
joshua stein
5b94406640 Comment: include page anchor in urls 2014-11-14 12:46:09 -06:00
joshua stein
c95ac10ad9 show green usernames for new users in story lists too 2014-11-07 13:42:33 -06:00
joshua stein
9e8b89be1c cast story.{upvotes,downvotes} to signed on mysql, integer on postgres
old mysql doesn't support 'cast(1 as integer)', but new/mariadb does

postgres doesn't support 'cast(1 as signed)'

should fix #145
2014-10-06 14:07:53 -05:00
joshua stein
5497fbd7bb allow disabling public invitation requests through a setting 2014-10-03 17:19:00 -05:00
joshua stein
b7ede71b31 on home page, show site title instead of "Home" 2014-10-03 17:17:46 -05:00
joshua stein
09bd0026d3 ignore a story's submitter's comments when calculating hotness 2014-09-16 10:53:25 -05:00
joshua stein
d5474de775 add short ids into search indicies 2014-09-12 10:42:22 -05:00
joshua stein
dfe6db4849 revert 85cb7c20, give up on planet rss aggregation 2014-08-31 20:35:41 -05:00
joshua stein
962b7e8d59 add per-tag story hotness modifiers 2014-08-31 20:27:54 -05:00