From 816ef83bd0738e3207a7dc106fd0a95b9b59baea Mon Sep 17 00:00:00 2001 From: Devlin Junker Date: Tue, 26 Sep 2023 14:55:32 -0700 Subject: reuse ShareItem component in FeedItemDisplay Signed-off-by: Devlin Junker --- lib/Service/ShareService.php | 2 ++ src/components/feed-display/FeedItemDisplay.vue | 21 +++++++++++++-------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/lib/Service/ShareService.php b/lib/Service/ShareService.php index 552e1d9a4..1ba69b612 100644 --- a/lib/Service/ShareService.php +++ b/lib/Service/ShareService.php @@ -114,6 +114,8 @@ class ShareService $sharedItem->setStarred(false); $sharedItem->setSharedBy($userId); + // TODO: should we set the pub date to the date of share? + // Get 'shared with me' dummy feed $feedUrl = $this->urlGenerator->getBaseUrl() . '/news/sharedwithme'; $feed = $this->feedService->findByUrl($shareRecipientId, $feedUrl); diff --git a/src/components/feed-display/FeedItemDisplay.vue b/src/components/feed-display/FeedItemDisplay.vue index 8d97e856e..c22db1772 100644 --- a/src/components/feed-display/FeedItemDisplay.vue +++ b/src/components/feed-display/FeedItemDisplay.vue @@ -1,14 +1,11 @@