Carl Chenet
6b20a3a913
point archive links back to archive.is - merged with i18n
2017-05-17 19:21:23 +02:00
Carl Chenet
412b93babd
merged 734e28776ga19c8ac9c7c176f857237788d33c71 with i18n
2017-05-16 18:58:36 +02:00
joshua stein
0f498d3ee3
Markdowner: disable automatic profile linking for now
2016-02-11 10:54:02 -06:00
joshua stein
3afe1538f8
stories: show archive link to archive.is
2016-02-10 08:39:42 -06:00
joshua stein
09a92040ed
Sponge: bring in monkeypatch to override SSL hostname
...
We force a connection to a pre-resolved IP to avoid being tricked
into connecting to a local host, but hosts that use SNI need the
hostname in the SSL negotiation instead of an IP.
Fixes the problem with CloudFlare blocking requests to medium.com,
which prevented the URL canonicalization code from being run when a
medium URL was submitted, which prevented us from stripping off
those stupid referral codes medium attaches to URLs (which could
be stripped out in Story#url= but medium allows custom domains, so
that wouldn't work for things like m.signalvnoise.com).
Code from Pushover.
2016-01-21 11:59:06 -06:00
joshua stein
a812f25c2f
Markdowner: use Nokogiri for html rewriting
...
brute forcing changes by regexps gets things wrong sometimes, so use
nokogiri to parse the html output of rdiscount and do changes on
individual nodes, then turn back into a string
we lose the ability to move punctuation inside of auto-generated
links, but i don't see any easy/definitive way to do this properly.
closes #242
closes #209
2015-12-07 12:27:03 -06:00
joshua stein
2ee262fe8a
StoryCacher: cope with failed diffbot fetches
2015-10-19 19:13:15 -05:00
joshua stein
cbf14021ac
pass :strict to RDiscount
...
Gives up the ability to use particular formatting inside of words in
order to prevent turning everything into a list that shouldn't be,
like a single "K." comment.
Closes #217
2015-08-12 09:25:51 -05: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
6174573fbe
Sponge: keep user-supplied headers separate
...
when doing redirections, continue with the user-supplied headers,
not the ones we've been accumulating
fixes the problem of sending the wrong Host header to a redirection
2014-07-02 09:58:52 -05:00
joshua stein
4c0aaf7c2e
fix story caching stuff once and for all
2014-03-24 10:26:07 -05:00
joshua stein
33f72fc634
StoryCacher: keep converting 3 newlines to 2
2014-03-24 10:26:06 -05:00
joshua stein
24c92840c3
diffbot appears to be formatting results properly now
2014-03-12 17:16:21 -05:00
joshua stein
0f9fb17099
fix fallout from mailing_list_enabled -> mailing_list_mode
2014-02-20 14:10:42 -06:00
joshua stein
f9778044f0
try to strip out attributed text from incoming e-mails
2014-02-03 19:27:54 -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
6cca9f64e5
Pushover: return a hash from self.sounds when no api key configured
...
fixes #120
2014-01-28 13:19:30 -06:00
joshua stein
71eeb6c7d2
be a good pushover user and let the user specify a sound
...
- move pushover particulars into User model
- Pushover class rescues errors, don't need to do it from User
2014-01-21 01:21:02 -06:00
Serge Paquet
8fbf76b484
use activerecord query interface instead of deprecated finder methods
2013-12-25 16:43:50 -05:00
joshua stein
1b5b4823e9
prevent diffbot from trying to read pdf links
2013-12-03 16:14:35 -06:00
joshua stein
c8d9c66061
let diffbot take a long while
2013-07-03 22:11:01 -05:00
joshua stein
fd41bfa566
start on mailing list interface
2013-06-30 00:54:02 -05:00
joshua stein
b641d0232d
sort of merge cache branch but don't do anything automatically
...
allow manual caching of story text using diffbot, if an api key is
configured and Story#fetch_story_cache! is called
2013-06-30 00:54:01 -05:00
joshua stein
f585d07aa8
don't do @username expansion in user profile about section
...
most users are probably putting @username to mean a twitter profile,
not a link to a lobste.rs profile
2013-03-23 21:05:13 -05:00
joshua stein
d0459974cd
so long whitespace
2013-02-13 18:50:51 -06:00
joshua stein
69facd5408
pushover: send a default message if none supplied
2012-11-21 22:04:29 -06:00
joshua stein
b7e5447c1d
allow embedded images in story text, but still not in comments
2012-09-17 13:24:29 -05:00
joshua stein
cb5e05c461
minor cleanups after last merge
2012-09-16 15:51:25 -05:00
joshua stein
17d8213bc7
merge @username mentions and notifications from @rjsamson
2012-09-16 15:41:21 -05:00
Robert J Samson
ec1bcb9704
Added mentions in comments using @username convention. @username is linked to user profile in comment text, and notifications are available via email and pushover (with notification preferences) when a user is mention.
2012-09-10 13:40:33 -04:00
joshua stein
600b1c2b93
pushover messages can only be 512 characters long
2012-09-09 16:58:30 -05:00
joshua stein
0752ebf1f3
disable markdown images
2012-09-07 17:21:39 -05:00
joshua stein
426a052534
countinual moved
2012-09-03 03:22:30 -05:00
joshua stein
7a18f4c282
close socket
2012-08-24 11:42:23 -05:00
joshua stein
49c6e64aac
count user creation on countinual
2012-08-24 11:42:20 -05:00
joshua stein
f664734a40
fix markdown links that have trailing punctuation inside the url
2012-08-24 11:41:36 -05:00
joshua stein
c63d35a65d
use a common class for rdiscount options, filter out <h#> tags, add rel=nofollow
2012-08-24 11:41:35 -05:00
joshua stein
062fe6c2a3
reject ipv6 addresses for now
2012-08-24 11:41:34 -05:00
joshua stein
d9b95b2a1d
email and pushover reply notifications
2012-08-24 11:41:30 -05:00
joshua stein
8dd109c49f
drop custom markdowner for rdiscount
2012-08-24 10:57:42 -05:00
joshua stein
d536eaa3b3
move monkey patch to config
2012-08-24 10:57:11 -05:00
joshua stein
7b3cbdddee
rss feeds!
2012-08-24 10:57:10 -05:00
joshua stein
578c96d653
more work
2012-06-30 14:14:35 -05:00
joshua stein
95b4906e6e
working voting/scoring, threaded comments
2012-06-30 11:18:36 -05:00
joshua stein
093747b796
initial work on conversion from php tree
2012-06-16 20:15:46 -05:00