{"action":"created","issue":{"url":"https://api.github.com/repos/dreamwidth/dw-free/issues/1389","labels_url":"https://api.github.com/repos/dreamwidth/dw-free/issues/1389/labels{/name}","comments_url":"https://api.github.com/repos/dreamwidth/dw-free/issues/1389/comments","events_url":"https://api.github.com/repos/dreamwidth/dw-free/issues/1389/events","html_url":"https://github.com/dreamwidth/dw-free/issues/1389","id":78682242,"number":1389,"title":"if given a proxy URL for an image, find entries the image it's proxying appear in","user":{"login":"rahaeli","id":1716035,"avatar_url":"https://avatars.githubusercontent.com/u/1716035?v=3","gravatar_id":"","url":"https://api.github.com/users/rahaeli","html_url":"https://github.com/rahaeli","followers_url":"https://api.github.com/users/rahaeli/followers","following_url":"https://api.github.com/users/rahaeli/following{/other_user}","gists_url":"https://api.github.com/users/rahaeli/gists{/gist_id}","starred_url":"https://api.github.com/users/rahaeli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rahaeli/subscriptions","organizations_url":"https://api.github.com/users/rahaeli/orgs","repos_url":"https://api.github.com/users/rahaeli/repos","events_url":"https://api.github.com/users/rahaeli/events{/privacy}","received_events_url":"https://api.github.com/users/rahaeli/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dreamwidth/dw-free/labels/curated:%20mostwanted","name":"curated: mostwanted","color":"009800"},{"url":"https://api.github.com/repos/dreamwidth/dw-free/labels/severity:%20(2)%20major","name":"severity: (2) major","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-20T20:23:34Z","updated_at":"2015-05-21T16:32:13Z","closed_at":null,"body":"I'll take \"things I didn't think about for $1000\", Alex: if someone hotlinks an image from an external website, that website's owner sees the proxy URL in their logs and takes offense at the use of their image and sends us a DMCA report using the proxy URL as the 'location of the infringing material', we need to, knowing only the proxy URL, be able to find the original entry the proxied image appears in.\r\n\r\nIf it *really* can't be done, I think we're just barely legally in the clear, for reasons that would take me a long time to explain, but those reasons really hard to explain to somebody and it would be really nice to save the effort."},"comment":{"url":"https://api.github.com/repos/dreamwidth/dw-free/issues/comments/104345787","html_url":"https://github.com/dreamwidth/dw-free/issues/1389#issuecomment-104345787","issue_url":"https://api.github.com/repos/dreamwidth/dw-free/issues/1389","id":104345787,"user":{"login":"afuna","id":364169,"avatar_url":"https://avatars.githubusercontent.com/u/364169?v=3","gravatar_id":"","url":"https://api.github.com/users/afuna","html_url":"https://github.com/afuna","followers_url":"https://api.github.com/users/afuna/followers","following_url":"https://api.github.com/users/afuna/following{/other_user}","gists_url":"https://api.github.com/users/afuna/gists{/gist_id}","starred_url":"https://api.github.com/users/afuna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afuna/subscriptions","organizations_url":"https://api.github.com/users/afuna/orgs","repos_url":"https://api.github.com/users/afuna/repos","events_url":"https://api.github.com/users/afuna/events{/privacy}","received_events_url":"https://api.github.com/users/afuna/received_events","type":"User","site_admin":false},"created_at":"2015-05-21T16:32:13Z","updated_at":"2015-05-21T16:32:13Z","body":"So three suggested approaches.\n\nSearch: we send the raw entry text with the unproxied URLs, so we can't\nuse the existing search functionality. Tabling this unless the other two\nare equally unfeasible.\n\nKeep track of relationships: Stick into memcache the source entry every\ntime we convert a URL? Not sure I like this plan; it involves keeping\ntrack of a lot of info for a just in case ( and if we schedule the\nexpiration to match that of the proxy image, we likely won't have the\ninfo on hand when the DMCA, or whatever request comes in).\n\nProxy URL: including information about where its from -- tentatively, I\nthink that it would be possible to encode in the proxy URL the viewed\nentry information as additional arguments, and strip them out from\nconsideration in the proxy (so if we have the same image referred from\nmultiple entries, it still only downloads it once).\n\n\n"}}