Forum Discussion
luk
2 years agoBoss
I'd basically filter subscriptions by target.type = 'board' for the current user and get the the relevant board id's from that query, e.g.:
SELECT target.id FROM subscriptions WHERE target.type = 'board'
loop through the response items and assemble the board id's in a sequence.
then use that board id sequence in the next query to get the topics from the subscribed boards:
"SELECT subject, view_href, conversation FROM messages WHERE board.id IN('" + boardids?join("', '") + "') AND depth = 0 ORDER BY conversation.last_posting_activity_time DESC LIMIT 100"
Related Content
- 7 years ago
- 12 years ago