Skip to content

Commit

Permalink
Fix display of public group pages
Browse files Browse the repository at this point in the history
Update to version 5.1.1
  • Loading branch information
tibetsprague committed Dec 23, 2022
1 parent 3c1113e commit 1766063
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

## [5.1.1] - 2022-12-23

### Fixed
- Display of public group pages to non logged in users

## [5.1.0] - 2022-12-21

### Added
Expand Down
4 changes: 2 additions & 2 deletions api/graphql/makeModels.js
Original file line number Diff line number Diff line change
Expand Up @@ -740,8 +740,8 @@ export default function makeModels (userId, isAdmin, apiClient) {
getters: {
postsTotal: gt => gt.postCount(),
followersTotal: gt => gt.followerCount(),
isSubscribed: gt => gt.isFollowed(userId),
lastReadPostId: gt => gt.lastReadPostId(userId),
isSubscribed: gt => userId ? gt.isFollowed(userId) : null,
lastReadPostId: gt => userId ? gt.lastReadPostId(userId) : null,
newPostCount: gt => gt.newPostCount(userId)
},
relations: [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": "Tibet Sprague <tibet@hylo.com>",
"license": "GNU AFFERO GENERAL PUBLIC LICENSE v3",
"private": true,
"version": "5.1.0",
"version": "5.1.1",
"repository": {
"type": "git",
"url": "git://github.com/Hylozoic/hylo-node.git"
Expand Down

0 comments on commit 1766063

Please sign in to comment.