Skip to content

Commit

Permalink
Fix adding feed that was just deleted is causing an error
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
  • Loading branch information
Grotax committed Aug 25, 2022
1 parent e60fdff commit c217448
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ The format is mostly based on [Keep a Changelog](https://keepachangelog.com/en/1
- Document api item types (#1861)
- Fix deprecation warnings from Nextcloud server (#1869)
- Fix when marking all items as read, all items of the user are used in the sql query (#1873)
- Fix adding feed via the web-ui that was just deleted causing an error (#1872)

# Releases
## [18.1.1] - 2022-08-12
Expand Down
2 changes: 1 addition & 1 deletion lib/Controller/FeedController.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public function create(
try {
// we need to purge deleted feeds if a feed is created to
// prevent already exists exceptions
$this->feedService->purgeDeleted($this->getUserId(), false);
$this->feedService->purgeDeleted($this->getUserId(), null);

$feed = $this->feedService->create(
$this->getUserId(),
Expand Down

0 comments on commit c217448

Please sign in to comment.