Commit graph

46 commits

Author SHA1 Message Date
Carl Chenet 3f6646d87b if a user has a linked twitter account, give them attribution 2017-05-23 10:44:20 +02:00
Carl Chenet 04c94e6f19 post_to_twitter: clarify MIN_STORY_SCORE is a minimum 2017-05-23 10:42:49 +02:00
Carl Chenet 70f16e4dd3 mail_new_activity: use updated_at, to give time after initial 2017-05-08 19:20:35 +02:00
joshua stein 1637ee8117 mail_new_activity: hat is in From header, no need to add in body 2016-11-03 16:20:07 -05:00
joshua stein 092ba42fd9 mail_new_activity: declare mime version for whatever reason
closes #320
2016-10-31 14:39:14 -05:00
joshua stein 5f04c3e52e start_searchd: use system default ruby 2016-08-19 00:00:18 -05:00
joshua stein 64a2411bea post_to_twitter: handle 226 errors
Twitter rejects certain tweets with particular content that it
thinks is spam, and since it doesn't change over multiple
submissions, just skip them.
2016-08-19 00:00:18 -05:00
joshua stein 21a5152acf post_to_twitter: only count extensions with letters as domains 2016-05-02 17:56:56 -05:00
joshua stein 26d3ea3d30 mail_new_activity: QP strings need spaces turned into underscores
closes issue #271
2016-03-14 19:46:27 -05:00
joshua stein 9d371b72d6 post_to_twitter: guess anything with a dot and up to 10 letters is a domain 2016-02-17 14:21:56 -06:00
joshua stein 28a6faab9d mail_new_activity: properly implement QP for email subjects 2016-01-11 12:46:41 -06:00
joshua stein 4e94bc9e29 Comment: for emailed comments, show that in the message id used for mailing list 2015-12-02 13:46:19 -06:00
joshua stein 4e573b4ac6 mail_new_activity: use Story method for determining if user hid the story
Fixes #141
2015-08-03 09:49:45 -05:00
joshua stein b4444c58c9 twitter stupidly "shortens" find.com into http://t.co/u44JiITiuc, cope
try to pluck out simple urls in basic tlds and treat their length as
a t.co url if it's longer than the url being shortened

of course this will not catch all urls, but i'm not going to load a
whole suffix list or library just to deal with this stupid shit
2015-04-17 09:16:08 -05: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 6aba206eba post_to_twitter: start logging twitter ids now for an upcoming change 2015-01-27 12:14:26 -06:00
joshua stein db411ff112 put story tags as hashtags on the twitterz 2015-01-06 17:31:44 -06:00
joshua stein 6eca23a481 mail_new_activity: include hat if comment poster was wearing one 2015-01-02 23:59:59 -06:00
joshua stein b1b463f1bb some root_url fallout 2015-01-02 17:47:26 -06:00
joshua stein dfe6db4849 revert 85cb7c20, give up on planet rss aggregation 2014-08-31 20:35:41 -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 8eb8cc063c don't mail stories and comments to users that have hidden that story
closes #141
2014-03-24 10:26:07 -05:00
joshua stein 89cdf1101a add a story-only mailing list mode
closes #131
2014-02-19 12:49:12 -06:00
joshua stein b75468a2c9 move inbound e-mail parsing guts into an extra, add tests for it 2014-02-03 19:06:20 -06:00
joshua stein 91b3fe77fe add twitter-posting script that has been running for a while
closes #124
2014-01-31 22:26:18 -06:00
joshua stein 3241f34f75 don't interact with inactive users 2014-01-14 11:39:56 -06:00
Serge Paquet 5988038071 make Comment#ordered_for_story_or_thread_for_user work on query scope 2014-01-08 23:48:24 -05:00
joshua stein 345388079e Merge pull request #83 from srgpqt/sphinx
upgrade thinking-sphinx gem; requires sphinx >= 2.0.6
2014-01-07 10:17:31 -08:00
joshua stein 9b5ab9b978 try really hard to convert inbound mail to utf8 2014-01-07 11:42:21 -06:00
Serge Paquet 709b0bff98 upgrade thinking-sphinx gem 2014-01-07 05:52:29 -05:00
Serge Paquet 9b0294c471 upgrade to rails v4.0.2 2013-12-30 17:40:52 -05:00
joshua stein e63e45af2b record and show which comments were posted by e-mail, for no particular reason 2013-12-28 12:00:29 -06:00
Serge Paquet 8fbf76b484 use activerecord query interface instead of deprecated finder methods 2013-12-25 16:43:50 -05:00
joshua stein fce8c73fda wait 2 minutes before mailing out new comments to allow edits 2013-08-23 21:53:48 -05:00
joshua stein b710f85797 don't mail out deleted stories or comments 2013-07-03 22:40:59 -05:00
joshua stein ca62e5b43f try to fetch story cache twice if it fails the first time 2013-07-03 22:11:12 -05:00
joshua stein 1ae4c141a3 before cramming utf8 data into us-ascii, replace "smart" quotes and things 2013-07-01 14:28:39 -05:00
joshua stein a471eb180a don't hardcode "Lobsters" and "lobste.rs" everywhere, use Rails.application.{name,domain} 2013-06-30 01:50:23 -05:00
joshua stein 7e71908f3d try not to re-wrap comments posted by e-mail at 72 chars 2013-06-30 00:54:03 -05:00
joshua stein fd41bfa566 start on mailing list interface 2013-06-30 00:54:02 -05:00
joshua stein ee6a27beb3 disable tripwire when starting sphinx 2013-06-30 00:54:02 -05:00
joshua stein a921d3eeb5 add readme, do some cleanup before open sourcing 2012-08-24 11:42:23 -05:00
joshua stein c685e03628 sync production sphinx config 2012-08-24 11:41:37 -05:00
joshua stein f7fcd843a7 startup script for searchd in production 2012-08-24 11:41:37 -05:00
joshua stein 093747b796 initial work on conversion from php tree 2012-06-16 20:15:46 -05:00