func TagGalleries(p *models.Tag, paths []string, aliases []string, rw models.GalleryReaderWriter, cache *match.Cache) error {
	t := getTagTaggers(p, aliases, cache)

	for _, tt := range t {
		if err := tt.tagGalleries(paths, rw, func(subjectID, otherID int) (bool, error) {
			return gallery.AddTag(rw, otherID, subjectID)
		}); err != nil {
			return err
		}
	}
	return nil
}
// TagGalleries searches for galleries whose path matches the provided tag name and tags the gallery with the tag.
TagGalleries searches for galleries whose path matches the provided tag name and tags the gallery with the tag.
// TagGalleries searches for galleries whose path matches the provided tag name and tags the gallery with the tag .
func TagGalleries(p *models.Tag, paths []string, aliases []string, rw models.GalleryReaderWriter, cache *match.Cache) error {
	t := getTagTaggers(p, aliases, cache)
	for _, tt := range t {
		if err := tt.tagGalleries(paths, rw, func(subjectID, otherID int) (bool, error) {
			return gallery.AddTag(rw, otherID, subjectID)
		}); err != nil {
			return err
		}
	}
	return nil
}
func TagGalleries ( p * models . Tag , paths [ ] string , aliases [ ] string , rw models . GalleryReaderWriter , cache * match . Cache ) error { t := getTagTaggers ( p , aliases , cache ) for _ , tt := range t { if err := tt . tagGalleries ( paths , rw , func ( subjectID , otherID int ) ( bool , error ) { return gallery . AddTag ( rw , otherID , subjectID ) } ) ; err != nil { return err } } return nil }
TagGalleries searches for galleries whose path matches the provided tag name and tags the gallery with the tag.
TagGalleries searches for galleries whose path matches the provided tag name and tags the gallery with the tag .