Skip to content

Commit

Permalink
fix: Fix post counts for friends-only posts own profile
Browse files Browse the repository at this point in the history
  • Loading branch information
charmander authored Nov 1, 2024
1 parent e5b5464 commit 83435fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weasyl/controllers/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def profile_(request):
# Friends
lambda: frienduser.has_friends(otherid),
is_unverified,
_get_post_counts_by_type(otherid, friends=relation["friend"], rating=rating),
_get_post_counts_by_type(otherid, friends=relation["friend"] or relation["is_self"], rating=rating),
),
twitter_card=twitter_meta,
ogp=ogp,
Expand Down

0 comments on commit 83435fc

Please sign in to comment.