{"action":"created","issue":{"url":"https://api.github.com/repos/root-gg/plik/issues/185","repository_url":"https://api.github.com/repos/root-gg/plik","labels_url":"https://api.github.com/repos/root-gg/plik/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/root-gg/plik/issues/185/comments","events_url":"https://api.github.com/repos/root-gg/plik/issues/185/events","html_url":"https://github.com/root-gg/plik/issues/185","id":197692680,"number":185,"title":"Generate short links for upload and/or files","user":{"login":"peperunas","id":6033387,"avatar_url":"https://avatars2.githubusercontent.com/u/6033387?v=4","gravatar_id":"","url":"https://api.github.com/users/peperunas","html_url":"https://github.com/peperunas","followers_url":"https://api.github.com/users/peperunas/followers","following_url":"https://api.github.com/users/peperunas/following{/other_user}","gists_url":"https://api.github.com/users/peperunas/gists{/gist_id}","starred_url":"https://api.github.com/users/peperunas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peperunas/subscriptions","organizations_url":"https://api.github.com/users/peperunas/orgs","repos_url":"https://api.github.com/users/peperunas/repos","events_url":"https://api.github.com/users/peperunas/events{/privacy}","received_events_url":"https://api.github.com/users/peperunas/received_events","type":"User","site_admin":false},"labels":[{"id":519407165,"url":"https://api.github.com/repos/root-gg/plik/labels/feature_request","name":"feature_request","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-27T11:56:31Z","updated_at":"2017-09-02T23:06:46Z","closed_at":null,"author_association":"NONE","body":"Hello!\r\nI've noticed that every upload is automatically shortened once a service is specified in `plikd.cfg`.\r\nI think it would be better to \"shorten on demand\", i.e: when a user wants to do it. \r\nFurthermore, it would be nice to be able to shorten specific files too, not only the \"main\" upload.\r\n\r\nThank you guys, you are doing a GREAT job!"},"comment":{"url":"https://api.github.com/repos/root-gg/plik/issues/comments/326774067","html_url":"https://github.com/root-gg/plik/issues/185#issuecomment-326774067","issue_url":"https://api.github.com/repos/root-gg/plik/issues/185","id":326774067,"user":{"login":"damajor","id":1475820,"avatar_url":"https://avatars0.githubusercontent.com/u/1475820?v=4","gravatar_id":"","url":"https://api.github.com/users/damajor","html_url":"https://github.com/damajor","followers_url":"https://api.github.com/users/damajor/followers","following_url":"https://api.github.com/users/damajor/following{/other_user}","gists_url":"https://api.github.com/users/damajor/gists{/gist_id}","starred_url":"https://api.github.com/users/damajor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damajor/subscriptions","organizations_url":"https://api.github.com/users/damajor/orgs","repos_url":"https://api.github.com/users/damajor/repos","events_url":"https://api.github.com/users/damajor/events{/privacy}","received_events_url":"https://api.github.com/users/damajor/received_events","type":"User","site_admin":false},"created_at":"2017-09-02T23:06:46Z","updated_at":"2017-09-02T23:06:46Z","author_association":"NONE","body":"> Do we want to implement shortening on the same domain or a separate one ?\r\n\r\nI would suggest to make a separate server (another daemon with its own settings) in order to address same and separate domains. Like an external url shortener but made by you and for the only purpose of Plik.\r\n\r\n> Do we want the shortest possible links ( plik.root.gg/1 ) or something with like 4 or 6 alphanumerical characters ?\r\n\r\n+1 for something with 4 to 6 chars. The idea of @peperunas with the custom url is also nice.\r\n\r\n> Does the short links need to be persisted with the upload so only one short link per upload exists or not ?\r\n\r\nSame TTL.\r\n\r\n> Does the short link need to be linked with the user that created it ?\r\n\r\nIf the user is logged yes, if not then only link it to the file.\r\n\r\n> Wouldn't it make more sense to do it in a side project so you can also use it to shorten other links ?\r\n\r\nMy first remark :)\r\n\r\n> Does something like this already exists and would be easy to integrate ?\r\n\r\nMaybe this can help [https://www.google.fr/search?q=golang+url+shortener](https://www.google.fr/search?q=golang+url+shortener)"}}
{"actor":{"display_login":"damajor"}}