aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2024-03-25 16:11:10 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2024-03-26 14:41:15 +0100
commitb8250affb00cc41cdb845e219a098ed49a27373c (patch)
tree350b76b4436f34fe19a3984b7515a71fd50b01d6
parent46906b7d69642f7e5b1dc031e00921b39b27dce8 (diff)
downloadnextcloud-server-b8250affb00cc41cdb845e219a098ed49a27373c.tar.gz
nextcloud-server-b8250affb00cc41cdb845e219a098ed49a27373c.zip
fix(contactsinteraction): Allow vCard download
Sabre calculates a header for the size of a vcard, therefore we have to implement the size method. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
-rw-r--r--apps/contactsinteraction/lib/Card.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/contactsinteraction/lib/Card.php b/apps/contactsinteraction/lib/Card.php
index f39396a7326..b7f45002752 100644
--- a/apps/contactsinteraction/lib/Card.php
+++ b/apps/contactsinteraction/lib/Card.php
@@ -96,7 +96,7 @@ class Card implements ICard, IACL {
* @inheritDoc
*/
public function getSize(): int {
- throw new NotImplemented();
+ return strlen($this->contact->getCard());
}
/**