오늘의 서커스 내용 세션의 정보를 가져오는데 세션의 앱은 ApplicationGrants를 받아야 하고 세션의 프로필 ID는 ApplicationGrantProfiles으로 프로필별 승인을 받거나 전체 프로필 승인(ApplicationGrantProfiles.profileId == null)을 받야아 가져올 수 있는데 세션의 프로필을 헤더로 오버라이드할 수 있고 오버라이드된 프로필 역시 위 조건을 지키는 경우만 리턴되게 하는 쿼리를 짰어요
곰곰이 생각해보니 취약점이 있는 거 같아서 5중 조인으로 업그레이드되게 생김
If you have a fediverse account, you can quote this note from your own instance. Search https://hackers.pub/ap/notes/0198cbcc-b4a9-7bb2-8e0f-f7d0cca91a13 on your instance and quote it. (Note that quoting is not supported in Mastodon.)