// gets all the views containing this artefact or a parent of this artefact and creates a watchlist activity for each view
if($views=get_column_sql('SELECT DISTINCT view FROM {view_artefact} WHERE artefact IN ('.implode(',',array_merge(array_keys(artefact_get_parents_for_cache($artefactid)),array($artefactid))).')')){
if($views=get_column_sql('SELECT DISTINCT view FROM {view_artefact} WHERE artefact IN ('.implode(',',array_merge(array_keys(artefact_get_parents_for_cache($artefactids)),$artefactids)).')')){