mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-28 20:13:31 -06:00
[chore] Use correct policy models
This commit is contained in:
parent
56f98dc3b9
commit
90851fc97b
2 changed files with 26 additions and 25 deletions
|
|
@ -173,7 +173,7 @@ func init() {
|
|||
|
||||
if !*oldStatus.Likeable {
|
||||
// Only author can like.
|
||||
policy.CanLike = gtsmodel.PolicyRules{
|
||||
policy.CanLike = >smodel.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 = >smodel.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 = >smodel.PolicyRules{
|
||||
Always: gtsmodel.PolicyValues{
|
||||
gtsmodel.PolicyValueAuthor,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue