joshua stein
168d9bfec3
story list: break up long words in titles and domains with <wbr>
2015-03-21 21:56:34 -05:00
joshua stein
21f3334155
moderations: fix table column widths
2015-03-19 12:11:05 -05:00
joshua stein
e974083413
Story: inactive tags that are marked for destruction are ok
2015-03-19 12:10:52 -05:00
joshua stein
26f17ae928
User: add some banned usernames from a long-ago comment by @kevinburke
2015-03-19 12:10:18 -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
ab00313b20
css: shrink the page width a little
2015-03-13 00:15:46 -05:00
joshua stein
921bbc4179
css: align top-level comments with the story
2015-03-13 00:15:46 -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
6734436e8c
search: show when there are 0 results
2015-03-11 10:29:41 -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
491a3d57e8
layout: print flash[:notice] as well
2015-03-10 17:40:57 -05:00
joshua stein
966579e596
Search: more sphinx chars to escape
2015-03-10 17:07:15 -05:00
joshua stein
9d8defb228
mobile css: remove div.d left margin
2015-03-10 17:06:56 -05:00
joshua stein
48d1b3a120
Merge pull request #192 from racketlogger/master
...
Gemfile: rename bcrypt, to eliminate the warning that they changed the gem name
2015-03-05 09:20:34 -06:00
Carlos Puchol
56d771a9f4
rename bcrypt, to eliminate the warning that they changed the gem name
2015-03-04 22:33:09 -08:00
joshua stein
620389ab95
add /u/?moderators=1 to list all moderators and admins
2015-02-23 16:56:06 -06:00
joshua stein
c2e7376a7b
add a shortcut to /search/something to search for that
2015-02-23 16:55:45 -06:00
joshua stein
fd00205625
for admins, show some private info about users in user profiles
2015-02-17 11:47:27 -06:00
joshua stein
976eb522e8
Hat: provide a destroy method that can log a moderation
2015-02-17 11:47:26 -06:00
joshua stein
752c8a172a
Merge pull request #191 from karlmcg/master
...
css: adjust line height of header down 1 pixel
2015-02-17 11:47:15 -06:00
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
73eb9ae662
post_to_twitter: only post stories once they have reached a vote threshold
...
This drops storing twitter:last_story_id in Keystore and stores each
story's tweet id, so we can query which stories meet the threshold
and haven't been posted to twitter yet.
2015-02-05 09:58:49 -06:00
joshua stein
ba0e1d64d5
mail_new_activity: allow utf-8
...
Apply quoted-printable to body text to allow utf-8 characters in
comments and story caches.
Subjects could use this too with quoted_printable(true) but there's
some weird wrapping problem with it so disable that for now.
2015-02-05 09:56:02 -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
6aba206eba
post_to_twitter: start logging twitter ids now for an upcoming change
2015-01-27 12:14:26 -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
joshua stein
5edaa90778
Merge pull request #188 from programble/patch-1
...
Add explanation of traffic number in logo title
2015-01-27 11:45:40 -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
231111cb86
drop extra pushover user fields
...
extra pushover data is now stored in the subscription, we don't need
it
user keys to subscription keys can be migrated by using
https://pushover.net/api/subscriptions#migration
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
joshua stein
62707efc61
Merge pull request #186 from jordigh/darkcss
...
Give textareas a default background colour
2015-01-13 10:44:56 -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
ce8eb45008
block robots from /search
2015-01-11 12:59:41 -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
db411ff112
put story tags as hashtags on the twitterz
2015-01-06 17:31:44 -06:00