Might be good to use the "content-add-to-library" activity as a boilerplate to work with for this, @stuartf .

So, have a look at the technique to handle aggregated activities with the ACTIVITY_CONTENT_ADD_LIBRARY keys. Also, would be good to re-use that naming scheme to be consistent (i.e., ACTIVITY_DISCUSSION_ADD_LIBRARY).