Image previews: clear on link deletion
commit26e86563dd0d102ee903220a2ba2d0dbf217e5fe
authorxiongchiamiov <xiong.chiamiov@gmail.com>
Fri, 22 May 2015 20:40:44 +0000 (22 13:40 -0700)
committerxiongchiamiov <xiong.chiamiov@gmail.com>
Mon, 15 Jun 2015 22:09:39 +0000 (15 15:09 -0700)
treedadaa09b56cc11de21c3da19824804e2a9ad5e3a
parent4b688caba477b5b1807824a4245c84763cf422c2
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.
r2/r2/lib/jsontemplates.py
r2/r2/lib/pages/pages.py
r2/r2/models/link.py