Commit Graph

6201 Commits

Author SHA1 Message Date
Brian Simpson
fb8ca7fcbb Dual write SubscribedSubredditsByAccount and add backfill script. 2015-06-30 18:41:08 -04:00
Brian Simpson
221b3b0d42 Add MigratingUserRel class to aid migrations away from UserRel. 2015-06-30 18:41:08 -04:00
Brian Simpson
b0cddf4f9b SubscriptionsByDay: C* column family to track subscriptions. 2015-06-30 18:41:08 -04:00
Brian Simpson
7126fe6d2a SubscribedSubredditsByAccount: C* DenormRel to replace SRMember. 2015-06-30 18:41:08 -04:00
Chad Birch
23ad6e4e7a Traffic page: add notice for June 26-28 data loss
This should be reverted in about a month.
2015-06-30 16:39:01 -06:00
Chad Birch
b29b79a8f8 Traffic page: processing info in red only if slow
Previously the note about how traffic processing works would be red
whether it was currently slow or not. This makes it so that it's just
black and bold if it's the normal message about processing being on an
hourly basis, and red if it's the warning about things currently being
slow.
2015-06-30 16:38:59 -06:00
Florence Yeun
edbdc01a9f Toolbar: Remove from random redirect
The reddit toolbar is no longer supported.

Remove the toolbar link from the random link redirector (aka
serendipity button).
2015-06-30 14:45:41 -07:00
Florence Yeun
7c82057450 Toolbar: Remove from share message
The reddit toolbar is no longer supported.

Remove the toolbar link from the share message (there is already a
link to the comments page).
2015-06-30 14:45:39 -07:00
Florence Yeun
a20f824273 Toolbar: Remove then parameter for submit
The reddit toolbar is no longer supported.

Remove the option to redirect to the toolbar after submitting a link.
2015-06-30 14:44:41 -07:00
Florence Yeun
ca2595669e Toolbar: Remove toolbar links
The reddit toolbar is no longer supported.

Remove the toolbar link that is injected on mousedown when the toolbar
preference is enabled.

Replace the toolbar links on the compact site with direct links.
2015-06-30 14:44:41 -07:00
Florence Yeun
af94ea0a9c Toolbar: Disable toolbar
The reddit toolbar is no longer supported.

Disable the toolbar frame and remove the toolbar option from the user
preferences page.
2015-06-30 14:44:40 -07:00
David Wick
d4ec3ab5df Password strength: mark passwords containing email address weak 2015-06-30 11:24:58 -07:00
Brian Simpson
bb4abd8129 Count instances of inconsistent data from CommentScoresByLink. 2015-06-28 09:38:43 -04:00
Florence Yeun
5f4f5dfd86 Analytics: Add ref_campaign to list of stripped params 2015-06-30 09:27:28 -07:00
Florence Yeun
2e205716d9 Search: Restore LinkListing render class
Fix bug where listing columns became jagged.
2015-06-30 09:27:23 -07:00
CrypticCraig
ea163ace5c AutoMod: fix overflow of long lines on wiki page
AM condition text was overflowing to the right side of the page, this
just fixes it so it all is shown nicely in normal paragraph form.
2015-06-26 13:15:44 -06:00
Florence Yeun
6ca436c56b Subreddit settings: Plain description field
Markdown will no longer be supported in the subreddit description
field. Don't use `UserText` to render the description textarea.
2015-06-26 12:13:12 -07:00
Florence Yeun
f0858d185c Share: Tweak message formatting
Use blockquote for additional formatting to help distinguish the user
message when sharing a link.
2015-06-25 12:06:26 -07:00
zeantsoi
48691ad57d Disallow start date change if campaign has started 2015-06-24 16:12:18 -07:00
Jordan Milne
ec607e7375 Fix 500 error on overly-large API request body
Paster doesn't mind unicode responses, but gunicorn wants byte strings
only:

    Error handling request
    Traceback (most recent call last):
      File "/usr/lib/python2.7/dist-packages/gunicorn/workers/sync.py", line 131, in handle_request
        resp.write(item)
      File "/usr/lib/python2.7/dist-packages/gunicorn/http/wsgi.py", line 283, in write
        assert isinstance(arg, binary_type), "%r is not a byte." % arg
    AssertionError: u'{' is not a byte.

See https://gist.github.com/JordanMilne/4a7d1b5eb317e607479b for repro
2015-06-24 14:32:12 -07:00
Jordan Milne
35fa8149d5 Add a better check for HTTPS-ready embeds
Don't depend on a hardcoded list of providers, look at the embed HTML
to detect if we'll get mixed content or a placeholder image on HTTPS
2015-06-24 14:32:07 -07:00
xiongchiamiov
7bfb58e677 Reinstate random sort
A bit ago, I accidentally broke (in reddit/reddit@dbbc16e) the random sort
method for comment threads: we started filtering the `sort` GET parameter to
only "visible" options (those we display in the menu), when it should be *all*
sort options, visible or hidden.
2015-06-24 11:40:08 -07:00
Florence Yeun
2876c37c5a Comment embeds: Delink username
Do not link to user pages from comment embeds. This is a tweak to
simplify the experience for external users.
2015-06-23 14:48:34 -07:00
MelissaCole
af934eab3b Renotify unspammed comments
If a comment is unspammed, put a notification back in the inbox
of all possible recipients (parent, username notifications, etc).

Keep track of the `new` status when the comment has been marked as spam.
When it is unspammed, try to get the previous `new` status so that it
isn't marked as unread if it's already been read.
2015-06-22 11:36:19 -07:00
xiongchiamiov
3cb8e6f260 Open graph: up max image size to 320px wide
With a little bit of testing, we decided 320px-wide Open Graph images are ideal
for Facebook.  Specifically, they seem to crop down to 160px squares, except
when presenting images to retina devices, in which case you'll see 320x320.
So, if we can produce a 320px-wide image, let's provide it, and if not, we'll
fall back to a smaller size before trying other sources.
2015-06-22 10:51:03 -07:00
allthefoxes
ecf032e378 Change a few links to https 2015-06-18 15:28:05 -07:00
Chris Stephens
60a50c459b Lowercase any reference to multi ids 2015-06-17 11:43:20 -07:00
umbrae
d573af1307 Suggested sort: Do not suggest Q&A sort if the user is a responder
We don't want to suggest Q&A sort to responders, because the user
is answering questions, and Q&A sort focuses on already-answered
questions. This resets the suggested sort for responders.
2015-06-16 14:05:16 -07:00
Florence Yeun
ac80dde506 Toolbar: Update deprecation warning
Link to the toolbar wiki page.

https://www.reddit.com/wiki/toolbar
2015-06-16 10:01:44 -07:00
Jordan Milne
c6aaf9cfec Add percent_loggedin condition for feature flags 2015-06-15 15:56:55 -07:00
Jordan Milne
4dabd3afab Fix loggedin / loggedout feature flag tests 2015-06-15 15:56:52 -07:00
David Wick
66cf8dd704 Fix gold form for users blocking google analytics
Ghostery has a tendency to monkey patch things it blocks.  This
extra guard ensures we don't throw `TypeErrors` when calling
`_ga.getByName`.
2015-06-15 15:23:08 -07:00
xiongchiamiov
26e86563dd Image previews: clear on link deletion
We've had a number of minor data leaks where we'd expose information from
deleted links in metadata information.  While we can patch them as they come
up, getting rid of the data at the source makes it harder to make these
mistakes.

Specifically, this was motivated by Open Graph image metadata being pulled from
the preview image for deleted self-posts.
2015-06-15 15:09:39 -07:00
xiongchiamiov
4b688caba4 Un-gate image previews
We're using them in mobileweb, and are getting ready to announce them to the
developer community, so we don't really need them gated behind a feature flag
any more.
2015-06-15 14:44:58 -07:00
Florence Yeun
e12672018d Sharing: Remove CAPTCHA for email share
We're no longer requiring a CAPTCHA for the email share feature.
Sharing by email/username requires login and is also rate limited.
2015-06-12 11:20:58 -07:00
Florence Yeun
7b37d04a1c Sharing: Log event for email opt out
Log a simple event for successful email opt out and opt in.
2015-06-12 11:20:22 -07:00
Jack Lawson
43c91ea479 Remap .mobile to simple.reddit.com 2015-06-11 15:56:56 -07:00
Matt Lee
47bfe96697 Sharing: Prevent opening multiple share menus when spamming clicks. 2015-06-11 15:37:55 -07:00
Matt Lee
04766de8cb CombinedSearch: Change no-results message color to grey. 2015-06-11 15:37:54 -07:00
Chris Stephens
43162e25e8 Refactor the image preview generation method
This will allow the method to be called from other locations so we can
use the image preview object in other locations.
2015-06-11 15:25:50 -07:00
Brian Simpson
2321d4b117 Don't rely on special author_id value for /r/promos. 2015-06-11 02:27:08 -04:00
Brian Simpson
3c1267de16 Subreddit.get_promote_srid: use an ini value rather than a query.
This should be faster because it doesn't need to hit caches or
postgres.
2015-06-11 02:27:08 -04:00
Matt Lee
268b44ba63 Cleanup: Remove unused javascript.
A pass at cleaning up some frontend code by removing unused functions.  All of
these functions are either 1. not referenced anywhere or 2. referenced
somewhere, but don't actually _do_ anything. In the latter case, the reference
is removed as well.

The list of functions removed:

- hover_open_menu
- update_user
- emptyInput
- clear_all_langs
- check_some_langs
- show_unfriend
- pure_domain
- parse_domain
- save_usertext
- save_thing
- unsave_thing
- $.fn.same_author
- tool_cover
- fire_success
- check_name
- too_big

Additionally, the 'success_field' template in utils.html is removed, as it is
imported several places but never rendered (and was the only place the
fire_success function was being called).
2015-06-11 11:42:10 -07:00
Brian Simpson
4245fde3e1 Use the same selftext max length for all subreddit types.
Previously selfpost only subreddits got a limit of 40,000 characters
and other subreddits had a limit of 15,000 characters. Now all subreddits
have a limit of 40,000 characters.
2015-06-11 01:57:02 -04:00
Florence Yeun
fc09f064ee CombinedSearch: Remove hot sort from sort menu
This is an experimental change. We are considering dropping support
for sorting by hot due to very low usage.
2015-06-10 15:33:19 -07:00
Matt Lee
9bd078783f CombinedSearch: Add some missing translations.
Conflicts:
	r2/r2/templates/searchresultlink.html
2015-06-10 13:23:25 -07:00
Matt Lee
52dcca31fa CombinedSearch: Decrease font size of meta text. 2015-06-10 13:23:25 -07:00
Matt Lee
76a2f6831d CombinedSearch: Use rendered markdown in post selftext.
Conflicts:
	r2/r2/templates/searchresultlink.html
2015-06-10 13:23:25 -07:00
Matt Lee
32db79770d CombinedSearch: Add 'visited' state for search result links.
Simplify the css a bit by making all links the same link color and adding a
purple link color for :visited and .visited links.  Also adds posts clicked on
from the new search results page to the 'Recently Viewed Links' widget.
2015-06-10 13:23:25 -07:00
Matt Lee
9c78287817 CombinedSearch: Make points and comment counts more prominent.
Moves the subreddit link to the end of the meta line to keep the score and
number of comments more consistently positioned.

Also adds the 'ambivote' icon before score, and linkifies the comment count.
2015-06-10 13:23:25 -07:00