mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-07 06:53:09 -06:00
mediaapi/storage: Improve GetMediaMetadata description
This commit is contained in:
parent
1f2ac60bee
commit
2e795ed8aa
|
|
@ -47,7 +47,9 @@ func (d *Database) StoreMediaMetadata(mediaMetadata *types.MediaMetadata) error
|
|||
return d.statements.insertMedia(mediaMetadata)
|
||||
}
|
||||
|
||||
// GetMediaMetadata possibly selects the metadata about previously uploaded media from the database.
|
||||
// GetMediaMetadata returns metadata about media stored on this server. The media could
|
||||
// have been uploaded to this server or fetched from another server and cached here.
|
||||
// Returns sql.ErrNoRows if there is no metadata associated with this media.
|
||||
func (d *Database) GetMediaMetadata(mediaID types.MediaID, mediaOrigin gomatrixserverlib.ServerName) (*types.MediaMetadata, error) {
|
||||
return d.statements.selectMedia(mediaID, mediaOrigin)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue