payload: {"action":"created","issue":{"url":"https://api.github.com/repos/ampache/ampache/issues/2125","repository_url":"https://api.github.com/repos/ampache/ampache","labels_url":"https://api.github.com/repos/ampache/ampache/issues/2125/labels{/name}","comments_url":"https://api.github.com/repos/ampache/ampache/issues/2125/comments","events_url":"https://api.github.com/repos/ampache/ampache/issues/2125/events","html_url":"https://github.com/ampache/ampache/issues/2125","id":516850927,"node_id":"MDU6SXNzdWU1MTY4NTA5Mjc=","number":2125,"title":"XML API advanced_search on Favorite always returns 0 matches","user":{"login":"4phun","id":57291084,"node_id":"MDQ6VXNlcjU3MjkxMDg0","avatar_url":"https://avatars2.githubusercontent.com/u/57291084?v=4","gravatar_id":"","url":"https://api.github.com/users/4phun","html_url":"https://github.com/4phun","followers_url":"https://api.github.com/users/4phun/followers","following_url":"https://api.github.com/users/4phun/following{/other_user}","gists_url":"https://api.github.com/users/4phun/gists{/gist_id}","starred_url":"https://api.github.com/users/4phun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4phun/subscriptions","organizations_url":"https://api.github.com/users/4phun/orgs","repos_url":"https://api.github.com/users/4phun/repos","events_url":"https://api.github.com/users/4phun/events{/privacy}","received_events_url":"https://api.github.com/users/4phun/received_events","type":"User","site_admin":false},"labels":[{"id":1355149007,"node_id":"MDU6TGFiZWwxMzU1MTQ5MDA3","url":"https://api.github.com/repos/ampache/ampache/labels/api","name":"api","color":"90f4e2","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":22,"created_at":"2019-11-03T16:09:21Z","updated_at":"2019-11-07T09:58:11Z","closed_at":"2019-11-07T09:58:10Z","author_association":"NONE","body":"Hi,\r\n\r\nHope you doing well. I'm looking to add an Ampache plugin to my pet project, so I'm messing around the XML API in devel branch.\r\n\r\nHope it's OK to report/ask here.\r\n\r\nExample:\r\n\r\nThe following call\r\n/server/xml.server.php?action=advanced_search&auth=<auth_code>&type=song&rule_1=favorite&rule_1_input=%&rule_1_operator=contain\r\nproduces this SQL\r\nSELECT DISTINCT(`song`.`id`) FROM `song` LEFT JOIN `user_flag` ON `song`.`id`=`user_flag`.`object_id`  WHERE `song`.`title`  '%' AND `user_flag`.`user` = 0 AND `user_flag`.`object_type` = 'song'\r\n\r\nFirst question is operator missing for song.title. Am I wrong to use contain as operator in the request?\r\nSecond is user being 0. This seems to be an issue with all APIs, not only advanced_search. Even on the \"Recently Played\" page, songs played through the API have user name \"Ampache User\".\r\n\r\nThank you in advance\r\nPeter"},"comment":{"url":"https://api.github.com/repos/ampache/ampache/issues/comments/551008033","html_url":"https://github.com/ampache/ampache/issues/2125#issuecomment-551008033","issue_url":"https://api.github.com/repos/ampache/ampache/issues/2125","id":551008033,"node_id":"MDEyOklzc3VlQ29tbWVudDU1MTAwODAzMw==","user":{"login":"lachlan-00","id":1305249,"node_id":"MDQ6VXNlcjEzMDUyNDk=","avatar_url":"https://avatars2.githubusercontent.com/u/1305249?v=4","gravatar_id":"","url":"https://api.github.com/users/lachlan-00","html_url":"https://github.com/lachlan-00","followers_url":"https://api.github.com/users/lachlan-00/followers","following_url":"https://api.github.com/users/lachlan-00/following{/other_user}","gists_url":"https://api.github.com/users/lachlan-00/gists{/gist_id}","starred_url":"https://api.github.com/users/lachlan-00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lachlan-00/subscriptions","organizations_url":"https://api.github.com/users/lachlan-00/orgs","repos_url":"https://api.github.com/users/lachlan-00/repos","events_url":"https://api.github.com/users/lachlan-00/events{/privacy}","received_events_url":"https://api.github.com/users/lachlan-00/received_events","type":"User","site_admin":false},"created_at":"2019-11-07T09:58:10Z","updated_at":"2019-11-07T09:58:10Z","author_association":"MEMBER","body":"advanced search is good in develop now"}}
other: {"actor":{"display_login":"lachlan-00"}}