Skip to content

Commit

Permalink
Auto Release (#66)
Browse files Browse the repository at this point in the history
* Auto Release

* Rector Rectify

* Switch action on push to tag

Co-authored-by: zingimmick <zingimmick@users.noreply.github.com>
  • Loading branch information
zingimmick and zingimmick authored Sep 2, 2021
1 parent 68f147a commit de8f416
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Concerns/Bookmarkable.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public function isBookmarkedBy(Model $user): bool
if (! is_a($user, config('bookmark.models.user'))) {
return false;
}

$bookmarkersLoaded = $this->relationLoaded('bookmarkers');

if ($bookmarkersLoaded) {
Expand Down
1 change: 1 addition & 0 deletions src/Concerns/Bookmarker.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public function unbookmark(Model $object): bool
if ($hasNotBookmarked) {
return true;
}

$bookmarkerBookmarksLoaded = $this->relationLoaded('bookmarkerBookmarks');
if ($bookmarkerBookmarksLoaded) {
$this->unsetRelation('bookmarkerBookmarks');
Expand Down

0 comments on commit de8f416

Please sign in to comment.