diff options
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/Avatars/AvatarNode.php | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/apps/dav/lib/Avatars/AvatarNode.php b/apps/dav/lib/Avatars/AvatarNode.php index 0f2bfe1da43..7d606d55cba 100644 --- a/apps/dav/lib/Avatars/AvatarNode.php +++ b/apps/dav/lib/Avatars/AvatarNode.php @@ -83,11 +83,16 @@ class AvatarNode extends File { return 'image/jpeg'; } -// function getSize() { -// return $this->avatar->getFile($this->size)->getSize(); -// } - function getETag() { return $this->avatar->getFile($this->size)->getEtag(); } + + function getLastModified() { + $timestamp = $this->avatar->getFile($this->size)->getMTime(); + if (!empty($timestamp)) { + return (int)$timestamp; + } + return $timestamp; + + } } |