mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-08 07:23:10 -06:00
mediaapi/writers/download: Give remote files a placeholder UserID
This commit is contained in:
parent
df52b1aef2
commit
304a275e1b
|
|
@ -339,7 +339,7 @@ func Download(w http.ResponseWriter, req *http.Request, origin types.ServerName,
|
||||||
// As we have responded with 200 OK, any errors are ineffectual to the client request and so we just log and return.
|
// As we have responded with 200 OK, any errors are ineffectual to the client request and so we just log and return.
|
||||||
|
|
||||||
r.MediaMetadata.ContentLength = types.ContentLength(bytesWritten)
|
r.MediaMetadata.ContentLength = types.ContentLength(bytesWritten)
|
||||||
r.MediaMetadata.UserID = types.MatrixUserID("@unknown:" + string(r.MediaMetadata.Origin))
|
r.MediaMetadata.UserID = types.MatrixUserID("@:" + string(r.MediaMetadata.Origin))
|
||||||
|
|
||||||
logger.WithFields(log.Fields{
|
logger.WithFields(log.Fields{
|
||||||
"MediaID": r.MediaMetadata.MediaID,
|
"MediaID": r.MediaMetadata.MediaID,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue