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.
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.
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
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.
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.
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.
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.
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.
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.
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).
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.
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.
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.