Skip to content

Commit

Permalink
Hide by default comments of users who banned viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmz committed May 20, 2024
1 parent d14d6b4 commit 6a7ef92
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions host_vars/candy.freefeed.net
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,7 @@ translation_enabled: true
translation_monthly_quote: 50000
translation_daily_quote: 2000

user_preferences_defaults:
hideCommentsOfTypes:
- 4 # The Comment.HIDDEN_VIEWER_BANNED constant
user_preferences_overrides: {}
3 changes: 3 additions & 0 deletions host_vars/freefeed.net
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ translation_enabled: true
translation_monthly_quote: 2500000
translation_daily_quote: 25000

user_preferences_defaults:
hideCommentsOfTypes:
- 4 # The Comment.HIDDEN_VIEWER_BANNED constant
user_preferences_overrides:
notifyOfCommentsOnMyPosts:
createdSince: "2023-11-27"
Expand Down
1 change: 1 addition & 0 deletions roles/server/templates/local.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@
"apiKey": {{ translation_api_key | default("") | tojson }}
},
"userPreferences": {
"defaults": {{ user_preferences_defaults | tojson }},
"overrides": {{ user_preferences_overrides | tojson }}
}
}

0 comments on commit 6a7ef92

Please sign in to comment.