Skip to content

Commit

Permalink
Allow URI as data for vcard PHOTO
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Dec 17, 2018
1 parent c4a9bd1 commit eacb8cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/dav/lib/CardDAV/PhotoCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,10 @@ private function readCard($cardData) {
}

/**
* @param Binary $photo
* @param Binary|Uri $photo
* @return string
*/
private function getType(Binary $photo) {
private function getType(Property $photo) {
$params = $photo->parameters();
if (isset($params['TYPE']) || isset($params['MEDIATYPE'])) {
/** @var Parameter $typeParam */
Expand Down

0 comments on commit eacb8cd

Please sign in to comment.