about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-08-18 00:09:52 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:45:19 -0500
commitdbc0b8cac26f207be6a418016435803e7f81943a (patch)
tree52efaa05a52f0442dbfe3cf967beaa4b502b7e06
parent99c139cdd4e3b805b07ee0af26807c332246905c (diff)
[Privacy] Allow mixed-privacy posts in local API
-rw-r--r--app/controllers/accounts_controller.rb1
-rw-r--r--app/controllers/api/v1/accounts/statuses_controller.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/accounts_controller.rb b/app/controllers/accounts_controller.rb
index 8059e0e5d..88b30fb28 100644
--- a/app/controllers/accounts_controller.rb
+++ b/app/controllers/accounts_controller.rb
@@ -81,6 +81,7 @@ class AccountsController < ApplicationController
     @account.statuses.permitted_for(
       @account,
       current_account,
+      include_semiprivate: true,
       include_reblogs: !(threads_requested? || replies_requested?),
       only_reblogs: reblogs_requested?,
       only_replies: replies_requested?,
diff --git a/app/controllers/api/v1/accounts/statuses_controller.rb b/app/controllers/api/v1/accounts/statuses_controller.rb
index 61633ce36..f9b8ccc24 100644
--- a/app/controllers/api/v1/accounts/statuses_controller.rb
+++ b/app/controllers/api/v1/accounts/statuses_controller.rb
@@ -42,6 +42,7 @@ class Api::V1::Accounts::StatusesController < Api::BaseController
     @account.statuses.permitted_for(
       @account,
       current_account,
+      include_semiprivate: true,
       include_reblogs: include_reblogs?,
       include_replies: include_replies?,
       only_reblogs: only_reblogs?,