Commit Graph

1242 Commits

Author SHA1 Message Date
aewens 05edb001f7 Re-styled the hat design 2019-04-09 11:28:59 -04:00
ubergeek 5418785d04 Allowed creation of tags for all peeps
add info about new posts to irc

fix domain
2019-03-22 09:35:34 -04:00
ubergeek 08a3d8a5a4 added rules, mainly just the no political links, but also the proposed PG-13 content. 2019-03-22 09:35:34 -04:00
tilde services 0c1e2b74cf tildeverse custom 2019-03-22 09:35:34 -04:00
Peter Bhat Harkins 9711868670 prefetch js from login page
We only serve js to logged-in users, may as well hint the browser to prefetch
that just before it's used.
2019-03-20 20:45:41 -05:00
Peter Bhat Harkins 6a637b49fe don't message moderators about their own moderations/hat usage
Fix #429
2019-03-20 09:11:24 -05:00
Brian Kung efe3505811 Replace images in story description with text links
Fix #645
2019-03-20 08:04:26 -05:00
Peter Bhat Harkins 4e653a9896 show all suggested tags/titles, lift work from view to db
Also extracted tag_link helper to dedupe that snippet of repeated code.
2019-03-13 08:46:51 -05:00
Peter Bhat Harkins 0cea4d497c greppable logging for sockpuppeting
When I cleaned up a sockpuppeter a couple days ago I had to do some ridiculous
shell scripting to combine multiple lines by their request id to see/search
IP, method + URL, and username together. Now basic checks are trivial:

>   Request 127.0.0.1 GET /stories/uohnuj/upvote user: 123 totallynotpushcx
2019-03-08 17:24:50 -08:00
Peter Bhat Harkins 2cde69aa7d no images in story text; leaks browsing data to submitter
mostly reverts b7e5447
2019-03-04 21:11:38 -08:00
Peter Bhat Harkins e84fc8c679 recognize /foo and /foo/index.html as dupes 2019-02-26 09:30:14 -06:00
Peter Bhat Harkins d2963d4b80 title mod pages 2019-02-19 18:34:58 -06:00
Peter Bhat Harkins 31a938e916 fix so adding tags creates modlog entries 2019-02-16 15:25:46 -06:00
Peter Bhat Harkins d566b83e14 include deleted stories in flagged view 2019-02-08 09:59:09 -06:00
Peter Bhat Harkins 0dbbbaa213 Fix account deletion form
Fixes #636
2019-02-06 11:33:46 -06:00
Peter Bhat Harkins 9169b04fb6 fix similar story display on submit form 2019-01-25 18:38:58 +05:30
Abdullah Samman 1b6a0de73d Fix comment editing
Fixes #624 
Closes #625
2019-01-16 09:40:44 -06:00
Peter Bhat Harkins d9fc5356d6 don't search dupe urls 2019-01-16 07:35:52 -06:00
SvintBel 4841d38894 Fix form tag
Fixes #633
2019-01-16 07:35:28 -06:00
Peter Bhat Harkins 3cc6ff7aee revert changes to comment box until I can sort out form errors 2018-12-24 09:38:39 -06:00
Hunter Madison 93440ce5bc Fix #622 by renaming the invitation_code hidden field 2018-12-23 11:06:44 -05:00
Peter Bhat Harkins b10d659de4 fix hidden_fields for form_with 2018-12-22 11:38:51 -06:00
Abdullah Samman 17bdf34667 Make merged votes voteable
Fix #424
Fix #500
2018-12-09 09:58:38 -06:00
Abdullah Samman 089f3475ba Migrate deprecated form_tag and form_for to form_with
See next commit for note on running view style checks.
2018-12-09 09:51:30 -06:00
Abdullah Samman 0e198cb9bf encode fetched content to utf8
Net::HTTP is basically returning raw bytes and letting the user figure out if
the Content-Type header is correct, or if the response is HTML and an included
charset meta tag can be trusted. Rather than trying to get smarter and figure
out the encoding of the page, we're force-encoding to utf8 (which the vast
majority of pages are already) in a way that hopefully won't raise any
exceptions. We don't need perfect data here; good data is plenty.


Fix #590
2018-12-05 08:41:44 -06:00
Abdullah Samman 3426d6f607 Story#public_similar_story: return [] not nil
Fix #611
2018-12-05 08:22:19 -06:00
Peter Bhat Harkins bac3fe9179 hint hint 2018-12-05 08:15:12 -06:00
Abdullah Samman 48ea7e43cc fix opacity on flag menu
Fix #601.
2018-12-05 08:13:41 -06:00
Peter Bhat Harkins 5b958d907a error if parent comment was removed during writing 2018-11-29 19:29:43 -06:00
Abdullah Samman 1c82243da5 hint iOS safari scroll behavior
Fix #591
2018-11-28 09:24:55 -06:00
Lucas Charles cafc067bea Allow check_url_dupe to be queried by non-logged-in-users 2018-11-28 08:35:23 -06:00
Peter Bhat Harkins d9b17c2464 fix submission of dupe links + display of deleted stories from 8554cef 2018-11-28 08:26:42 -06:00
SengMing Tan 0b6476e4ce add rubocop cop to prevent the safe navigation operator
Close #596
2018-11-24 16:41:09 -06:00
Peter Bhat Harkins 04753278b3 rubocop 2018-11-24 16:02:45 -06:00
Peter Bhat Harkins b23f106477 fix appearance of deleted comments on /comments and user thread pages
Also fixes 1 + n queries on those pages.
2018-11-24 09:20:01 -06:00
Peter Bhat Harkins 54abea7ed6 better wording
https://lobste.rs/s/sfzmwr/proposal_set_everyone_s_invite_count_zero#c_np1ubv
2018-11-22 23:50:59 -06:00
Peter Bhat Harkins 8554cef9ef Story#similar_stories should not include deleted stories 2018-11-22 08:48:04 -06:00
Peter Bhat Harkins 1c04acec58 fix #similar_stories to not include merged stories 2018-11-21 21:06:30 -06:00
Peter Bhat Harkins bdb3098320 strip Facebook tracking param
http://thisinterestsme.com/facebook-fbclid-parameter/
2018-11-19 22:12:27 -06:00
Lucas Charles 8c0be535ea Add JSON MIME to StoriesController#check_url_dupe
Used by http://discussitapp.com for indexing our pages.

Merge #594 
Close #555
2018-11-19 20:39:28 -06:00
Peter Bhat Harkins bcaeb6839b fix 7498867 for s/duplicate/similar/ 2018-11-09 08:09:23 -06:00
Peter Bhat Harkins 849329b476 test password resetting 2018-11-08 11:28:15 -06:00
Peter Bhat Harkins 79b6a2b69c don't 500 if a user banned/deleted before server move tries to log in
Also add a rake task documenting what jcs did before the server move.
(Though ModNote is new since then.)
2018-11-08 10:56:20 -06:00
Frederik b2527d03e3 Fix </a> 2018-11-08 08:30:05 -06:00
Peter Bhat Harkins 7498867255 tweaks to display of similar stories 2018-11-07 11:49:33 -06:00
Brian Gerson 5eb0a40aee Surface duplicate stories on submission + display 2018-11-07 08:42:59 -06:00
Jason Schweier 18167b36a5 better handling of deleted stories + comments on user views 2018-11-07 08:28:50 -06:00
Peter Bhat Harkins 386a3452b9 bump dependencies for rack CVEs
https://groups.google.com/forum/#!topic/rubyonrails-security/GKsAFT924Ag
https://groups.google.com/forum/#!topic/rubyonrails-security/U_x-YkfuVTg
2018-11-05 17:15:31 -06:00
Peter Bhat Harkins bf3451a80f don't notify inactive users 2018-10-30 18:04:14 -05:00
Ben Sima 3803cf5680 Use code tags instead of backticks 2018-10-30 15:21:25 -05:00