diff options
author | Stefan Cherniakov <luka-sama@pm.me> | 2024-08-27 09:29:21 +0200 |
---|---|---|
committer | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-09-03 13:37:17 +0200 |
commit | d633b9bce641846c3925613c04c6e6489c008248 (patch) | |
tree | 80d02b6d257ee83919badebef5d1342c053c7f17 /apps/sharebymail/lib/ShareByMailProvider.php | |
parent | 5e4a166365a601bf0133a97fda968a85744dfef5 (diff) | |
download | nextcloud-server-d633b9bce641846c3925613c04c6e6489c008248.tar.gz nextcloud-server-d633b9bce641846c3925613c04c6e6489c008248.zip |
fix(files_sharing): Make share reminders more stable & fix issues
Signed-off-by: Stefan Cherniakov <luka-sama@pm.me>
Diffstat (limited to 'apps/sharebymail/lib/ShareByMailProvider.php')
-rw-r--r-- | apps/sharebymail/lib/ShareByMailProvider.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/sharebymail/lib/ShareByMailProvider.php b/apps/sharebymail/lib/ShareByMailProvider.php index e6bda058aaa..ca1546a3752 100644 --- a/apps/sharebymail/lib/ShareByMailProvider.php +++ b/apps/sharebymail/lib/ShareByMailProvider.php @@ -756,6 +756,7 @@ class ShareByMailProvider extends DefaultShareProvider implements IShareProvider ->set('hide_download', $qb->createNamedParameter((int)$share->getHideDownload(), IQueryBuilder::PARAM_INT)) ->set('attributes', $qb->createNamedParameter($shareAttributes)) ->set('mail_send', $qb->createNamedParameter((int)$share->getMailSend(), IQueryBuilder::PARAM_INT)) + ->set('reminder_sent', $qb->createNamedParameter((int)$share->getReminderSent(), IQueryBuilder::PARAM_INT)) ->executeStatement(); if ($originalShare->getNote() !== $share->getNote() && $share->getNote() !== '') { @@ -987,7 +988,7 @@ class ShareByMailProvider extends DefaultShareProvider implements IShareProvider } /** - * Create a share object from an database row + * Create a share object from a database row * * @throws InvalidShare * @throws ShareNotFound @@ -1012,6 +1013,7 @@ class ShareByMailProvider extends DefaultShareProvider implements IShareProvider $share->setLabel($data['label']); $share->setSendPasswordByTalk((bool)$data['password_by_talk']); $share->setHideDownload((bool)$data['hide_download']); + $share->setReminderSent((bool)$data['reminder_sent']); if ($data['uid_initiator'] !== null) { $share->setShareOwner($data['uid_owner']); |