{"action":"created","issue":{"url":"https://api.github.com/repos/bedita/bedita/issues/960","repository_url":"https://api.github.com/repos/bedita/bedita","labels_url":"https://api.github.com/repos/bedita/bedita/issues/960/labels{/name}","comments_url":"https://api.github.com/repos/bedita/bedita/issues/960/comments","events_url":"https://api.github.com/repos/bedita/bedita/issues/960/events","html_url":"https://github.com/bedita/bedita/issues/960","id":173946063,"number":960,"title":"Use BeEmbedMedia for custom object types extending Streams","user":{"login":"fquffio","id":7108146,"avatar_url":"https://avatars.githubusercontent.com/u/7108146?v=3","gravatar_id":"","url":"https://api.github.com/users/fquffio","html_url":"https://github.com/fquffio","followers_url":"https://api.github.com/users/fquffio/followers","following_url":"https://api.github.com/users/fquffio/following{/other_user}","gists_url":"https://api.github.com/users/fquffio/gists{/gist_id}","starred_url":"https://api.github.com/users/fquffio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fquffio/subscriptions","organizations_url":"https://api.github.com/users/fquffio/orgs","repos_url":"https://api.github.com/users/fquffio/repos","events_url":"https://api.github.com/users/fquffio/events{/privacy}","received_events_url":"https://api.github.com/users/fquffio/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bedita/bedita/labels/Priority%20-%20High","name":"Priority - High","color":"ffee00"},{"url":"https://api.github.com/repos/bedita/bedita/labels/Type%20-%20Enhancement","name":"Type - Enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"fquffio","id":7108146,"avatar_url":"https://avatars.githubusercontent.com/u/7108146?v=3","gravatar_id":"","url":"https://api.github.com/users/fquffio","html_url":"https://github.com/fquffio","followers_url":"https://api.github.com/users/fquffio/followers","following_url":"https://api.github.com/users/fquffio/following{/other_user}","gists_url":"https://api.github.com/users/fquffio/gists{/gist_id}","starred_url":"https://api.github.com/users/fquffio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fquffio/subscriptions","organizations_url":"https://api.github.com/users/fquffio/orgs","repos_url":"https://api.github.com/users/fquffio/repos","events_url":"https://api.github.com/users/fquffio/events{/privacy}","received_events_url":"https://api.github.com/users/fquffio/received_events","type":"User","site_admin":false},"assignees":[{"login":"fquffio","id":7108146,"avatar_url":"https://avatars.githubusercontent.com/u/7108146?v=3","gravatar_id":"","url":"https://api.github.com/users/fquffio","html_url":"https://github.com/fquffio","followers_url":"https://api.github.com/users/fquffio/followers","following_url":"https://api.github.com/users/fquffio/following{/other_user}","gists_url":"https://api.github.com/users/fquffio/gists{/gist_id}","starred_url":"https://api.github.com/users/fquffio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fquffio/subscriptions","organizations_url":"https://api.github.com/users/fquffio/orgs","repos_url":"https://api.github.com/users/fquffio/repos","events_url":"https://api.github.com/users/fquffio/events{/privacy}","received_events_url":"https://api.github.com/users/fquffio/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/bedita/bedita/milestones/12","html_url":"https://github.com/bedita/bedita/milestones/3-stable","labels_url":"https://api.github.com/repos/bedita/bedita/milestones/12/labels","id":633090,"number":12,"title":"3-stable","description":"branch: 3-corylus\r\n\r\nfixes and minor features for 3-corylus","creator":{"login":"stefanorosanelli","id":2122280,"avatar_url":"https://avatars.githubusercontent.com/u/2122280?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanorosanelli","html_url":"https://github.com/stefanorosanelli","followers_url":"https://api.github.com/users/stefanorosanelli/followers","following_url":"https://api.github.com/users/stefanorosanelli/following{/other_user}","gists_url":"https://api.github.com/users/stefanorosanelli/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanorosanelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanorosanelli/subscriptions","organizations_url":"https://api.github.com/users/stefanorosanelli/orgs","repos_url":"https://api.github.com/users/stefanorosanelli/repos","events_url":"https://api.github.com/users/stefanorosanelli/events{/privacy}","received_events_url":"https://api.github.com/users/stefanorosanelli/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":214,"state":"open","created_at":"2014-04-17T15:40:04Z","updated_at":"2016-08-30T07:14:38Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-08-30T07:14:38Z","updated_at":"2016-08-30T07:44:29Z","closed_at":null,"body":"If a custom object type extends `BeditaStreamModel` or `BeditaSimpleStreamModel` it is impossible to use `BeEmbedMediaHelper` to generate thumbnails and such.\r\n\r\nWe should add a configuration parameter to tell BeEmbedMediaHelper to treat a custom object type as if it was one of the core ones. For instance, one could have the `Avatars` object type, and want Avatars to behave like Images.\r\n\r\nWe could either add a global configuration (i.e. always handle Avatars as Images) or a per-invocation parameter `{$beEmbedMedia->object($myObj, ['forceType' => 'Image', …])}`… or both.\r\n\r\n@bedita/core What's the best option?"},"comment":{"url":"https://api.github.com/repos/bedita/bedita/issues/comments/243359263","html_url":"https://github.com/bedita/bedita/issues/960#issuecomment-243359263","issue_url":"https://api.github.com/repos/bedita/bedita/issues/960","id":243359263,"user":{"login":"fquffio","id":7108146,"avatar_url":"https://avatars.githubusercontent.com/u/7108146?v=3","gravatar_id":"","url":"https://api.github.com/users/fquffio","html_url":"https://github.com/fquffio","followers_url":"https://api.github.com/users/fquffio/followers","following_url":"https://api.github.com/users/fquffio/following{/other_user}","gists_url":"https://api.github.com/users/fquffio/gists{/gist_id}","starred_url":"https://api.github.com/users/fquffio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fquffio/subscriptions","organizations_url":"https://api.github.com/users/fquffio/orgs","repos_url":"https://api.github.com/users/fquffio/repos","events_url":"https://api.github.com/users/fquffio/events{/privacy}","received_events_url":"https://api.github.com/users/fquffio/received_events","type":"User","site_admin":false},"created_at":"2016-08-30T07:44:29Z","updated_at":"2016-08-30T07:44:29Z","body":"Great idea! Probably I would also add `$obj` to `embedAs` method parameters, just in case the behavior depends on the object being embedded. Thus `$objectModel->embedAs($obj)`."}}
{"actor":{"display_login":"fquffio"}}