Skip to content
Snippets Groups Projects
Commit 946f5696 authored by Travis Ralston's avatar Travis Ralston
Browse files

Don't export s3 URLs if not requested

parent 615c7979
No related branches found
No related tags found
No related merge requests found
......@@ -184,9 +184,12 @@ func StartUserExport(userId string, s3urls bool, includeData bool, log *logrus.E
}
mediaManifest := make(map[string]*manifestRecord)
for _, m := range media {
s3url, err := ds_s3.GetS3URL(m.DatastoreId, m.Location)
if err != nil {
log.Warn(err)
var s3url string
if s3urls {
s3url, err = ds_s3.GetS3URL(m.DatastoreId, m.Location)
if err != nil {
log.Warn(err)
}
}
mediaManifest[m.MxcUri()] = &manifestRecord{
ArchivedName: archivedName(m),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment