change mapillary=* to mapillary:image=* and mapillary:map_feature=*
I cannot find where in the codebase the tag is assigned to the OSM node, but where it assigns the mapillary image key with mapillary=<image_key> it is best to use mapillary:image=<image_key> to differentiate from mapillary:map_feature=<map_feature_key> which is used in JOSM for Mapillary data.
If the data being added is from Mapillary, then the unique key for the Mapillary point data would ideally be added as mapillary:map_feature=<map_feature_key> also. This way the image and the data source specifically are referenced and it can help prevent duplicates from the same single piece of data.