{"action":"created","issue":{"url":"https://api.github.com/repos/thelounge/thelounge/issues/2824","repository_url":"https://api.github.com/repos/thelounge/thelounge","labels_url":"https://api.github.com/repos/thelounge/thelounge/issues/2824/labels{/name}","comments_url":"https://api.github.com/repos/thelounge/thelounge/issues/2824/comments","events_url":"https://api.github.com/repos/thelounge/thelounge/issues/2824/events","html_url":"https://github.com/thelounge/thelounge/pull/2824","id":366302636,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwMDA5Mjkz","number":2824,"title":"Fix stored image previews not being dereferenced","user":{"login":"xPaw","id":613331,"node_id":"MDQ6VXNlcjYxMzMzMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/613331?v=4","gravatar_id":"","url":"https://api.github.com/users/xPaw","html_url":"https://github.com/xPaw","followers_url":"https://api.github.com/users/xPaw/followers","following_url":"https://api.github.com/users/xPaw/following{/other_user}","gists_url":"https://api.github.com/users/xPaw/gists{/gist_id}","starred_url":"https://api.github.com/users/xPaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xPaw/subscriptions","organizations_url":"https://api.github.com/users/xPaw/orgs","repos_url":"https://api.github.com/users/xPaw/repos","events_url":"https://api.github.com/users/xPaw/events{/privacy}","received_events_url":"https://api.github.com/users/xPaw/received_events","type":"User","site_admin":false},"labels":[{"id":323424560,"node_id":"MDU6TGFiZWwzMjM0MjQ1NjA=","url":"https://api.github.com/repos/thelounge/thelounge/labels/Type:%20Bug","name":"Type: Bug","color":"fe9a9a","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/thelounge/thelounge/milestones/28","html_url":"https://github.com/thelounge/thelounge/milestone/28","labels_url":"https://api.github.com/repos/thelounge/thelounge/milestones/28/labels","id":2803396,"node_id":"MDk6TWlsZXN0b25lMjgwMzM5Ng==","number":28,"title":"3.0.0","description":"","creator":{"login":"astorije","id":113730,"node_id":"MDQ6VXNlcjExMzczMA==","avatar_url":"https://avatars1.githubusercontent.com/u/113730?v=4","gravatar_id":"","url":"https://api.github.com/users/astorije","html_url":"https://github.com/astorije","followers_url":"https://api.github.com/users/astorije/followers","following_url":"https://api.github.com/users/astorije/following{/other_user}","gists_url":"https://api.github.com/users/astorije/gists{/gist_id}","starred_url":"https://api.github.com/users/astorije/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astorije/subscriptions","organizations_url":"https://api.github.com/users/astorije/orgs","repos_url":"https://api.github.com/users/astorije/repos","events_url":"https://api.github.com/users/astorije/events{/privacy}","received_events_url":"https://api.github.com/users/astorije/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":698,"state":"open","created_at":"2017-09-29T17:49:11Z","updated_at":"2018-10-03T16:20:35Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-10-03T11:55:27Z","updated_at":"2018-10-03T19:38:39Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/thelounge/thelounge/pulls/2824","html_url":"https://github.com/thelounge/thelounge/pull/2824","diff_url":"https://github.com/thelounge/thelounge/pull/2824.diff","patch_url":"https://github.com/thelounge/thelounge/pull/2824.patch"},"body":"Broken in 64ebe0f4372b789e79033b7307d0259360d96ed1 (#1303) when we added support for multiple previews in a single message"},"comment":{"url":"https://api.github.com/repos/thelounge/thelounge/issues/comments/426771396","html_url":"https://github.com/thelounge/thelounge/pull/2824#issuecomment-426771396","issue_url":"https://api.github.com/repos/thelounge/thelounge/issues/2824","id":426771396,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjc3MTM5Ng==","user":{"login":"capi","id":254852,"node_id":"MDQ6VXNlcjI1NDg1Mg==","avatar_url":"https://avatars3.githubusercontent.com/u/254852?v=4","gravatar_id":"","url":"https://api.github.com/users/capi","html_url":"https://github.com/capi","followers_url":"https://api.github.com/users/capi/followers","following_url":"https://api.github.com/users/capi/following{/other_user}","gists_url":"https://api.github.com/users/capi/gists{/gist_id}","starred_url":"https://api.github.com/users/capi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/capi/subscriptions","organizations_url":"https://api.github.com/users/capi/orgs","repos_url":"https://api.github.com/users/capi/repos","events_url":"https://api.github.com/users/capi/events{/privacy}","received_events_url":"https://api.github.com/users/capi/received_events","type":"User","site_admin":false},"created_at":"2018-10-03T19:38:39Z","updated_at":"2018-10-03T19:38:39Z","author_association":"NONE","body":"I have tested your changes, it fixes the issue for me. I tested both, images being references from only one channel and images being referenced from multiple channels. In both cases, files were now deleted as soon as the last channel which referenced the image had been parted."}}
{"actor":{"display_login":"capi"}}