[chore] Use correct policy models

This commit is contained in:
tobi 2025-09-03 16:57:12 +02:00
commit 90851fc97b
2 changed files with 26 additions and 25 deletions

View file

@ -173,7 +173,7 @@ func init() {
if !*oldStatus.Likeable {
// Only author can like.
policy.CanLike = gtsmodel.PolicyRules{
policy.CanLike = &gtsmodel.PolicyRules{
Always: gtsmodel.PolicyValues{
gtsmodel.PolicyValueAuthor,
},
@ -183,7 +183,7 @@ func init() {
if !*oldStatus.Replyable {
// Only author + mentioned can Reply.
policy.CanReply = gtsmodel.PolicyRules{
policy.CanReply = &gtsmodel.PolicyRules{
Always: gtsmodel.PolicyValues{
gtsmodel.PolicyValueAuthor,
gtsmodel.PolicyValueMentioned,
@ -194,7 +194,7 @@ func init() {
if !*oldStatus.Boostable {
// Only author can Announce.
policy.CanAnnounce = gtsmodel.PolicyRules{
policy.CanAnnounce = &gtsmodel.PolicyRules{
Always: gtsmodel.PolicyValues{
gtsmodel.PolicyValueAuthor,
},