diff --git a/apps/dav/lib/Avatars/AvatarNode.php b/apps/dav/lib/Avatars/AvatarNode.php index 0f2bfe1da4..7d606d55cb 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; + + } }