{"action":"created","issue":{"url":"https://api.github.com/repos/Postleaf/postleaf/issues/64","repository_url":"https://api.github.com/repos/Postleaf/postleaf","labels_url":"https://api.github.com/repos/Postleaf/postleaf/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/Postleaf/postleaf/issues/64/comments","events_url":"https://api.github.com/repos/Postleaf/postleaf/issues/64/events","html_url":"https://github.com/Postleaf/postleaf/issues/64","id":172877996,"number":64,"title":"Frontend menu items point to a deleted post/page","user":{"login":"karsasmus","id":6382544,"avatar_url":"https://avatars.githubusercontent.com/u/6382544?v=3","gravatar_id":"","url":"https://api.github.com/users/karsasmus","html_url":"https://github.com/karsasmus","followers_url":"https://api.github.com/users/karsasmus/followers","following_url":"https://api.github.com/users/karsasmus/following{/other_user}","gists_url":"https://api.github.com/users/karsasmus/gists{/gist_id}","starred_url":"https://api.github.com/users/karsasmus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karsasmus/subscriptions","organizations_url":"https://api.github.com/users/karsasmus/orgs","repos_url":"https://api.github.com/users/karsasmus/repos","events_url":"https://api.github.com/users/karsasmus/events{/privacy}","received_events_url":"https://api.github.com/users/karsasmus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-24T06:55:57Z","updated_at":"2016-08-24T16:34:12Z","closed_at":null,"body":"Thanks for using Postleaf! 💙💚\r\n\r\nThis issue tracker is ONLY for bug reports. If you need help with something or would like to request a feature, please ask on https://community.postleaf.org/ instead.\r\n\r\n---\r\n\r\n### Issue Summary\r\n\r\nAfter deleting a post, which was linked in the frontend menu, the menu item will not be deleted. If you click on that menu item, postleaf generates a 404.\r\n\r\nWe should check the menu items if they exist or not.\r\n\r\n### Steps to Reproduce\r\n\r\nTell us how to replicate the problem.\r\n\r\n1. Link a post/page in the menu\r\n2. Delete the post/page\r\n3. Click the menu link in frontend\r\n\r\n### Additional info\r\n\r\n- Postleaf version: master branch\r\n- PHP version: 5.5.9\r\n- Affected browsers: Chrome 52\r\n- Operating system: Ubuntu/ChromeOS\r\n"},"comment":{"url":"https://api.github.com/repos/Postleaf/postleaf/issues/comments/242128892","html_url":"https://github.com/Postleaf/postleaf/issues/64#issuecomment-242128892","issue_url":"https://api.github.com/repos/Postleaf/postleaf/issues/64","id":242128892,"user":{"login":"claviska","id":55639,"avatar_url":"https://avatars.githubusercontent.com/u/55639?v=3","gravatar_id":"","url":"https://api.github.com/users/claviska","html_url":"https://github.com/claviska","followers_url":"https://api.github.com/users/claviska/followers","following_url":"https://api.github.com/users/claviska/following{/other_user}","gists_url":"https://api.github.com/users/claviska/gists{/gist_id}","starred_url":"https://api.github.com/users/claviska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claviska/subscriptions","organizations_url":"https://api.github.com/users/claviska/orgs","repos_url":"https://api.github.com/users/claviska/repos","events_url":"https://api.github.com/users/claviska/events{/privacy}","received_events_url":"https://api.github.com/users/claviska/received_events","type":"User","site_admin":false},"created_at":"2016-08-24T16:34:12Z","updated_at":"2016-08-24T16:34:12Z","body":"Navigation is decoupled from posts. I don't think we should bother checking for this, as users might not expect that to happen. For example, what if you delete a page and then recreate it? (Granted, it's a terrible practice on a production site, but still.)\r\n\r\nPlus, if we do this with posts, we'll have to extend the same behavior to tags and users too.\r\n\r\nAt the moment, navigation is \"dumb.\" You can put whatever you want in the text box and it will be accepted. If, in the future, navigation becomes smarter (e.g. nav links point to actual resources) then this would definitely make sense."}}
{"actor":{"display_login":"claviska"}}