fix(Status): private can't be boosted

unless you are the author
This commit is contained in:
Evangelos Paterakis 2023-02-17 17:56:52 +02:00
parent ce95d25d27
commit 0086c12bbc
No known key found for this signature in database
GPG Key ID: FE5185F095BFC8C9
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ public class Tooth.API.Status : Entity, Widgetizable {
public bool can_be_boosted {
get {
return this.formal.visibility != "direct";
return this.formal.visibility != "direct" && (this.formal.visibility != "private" || this.formal.account.is_self ());
}
}