Open dessalines opened 2 weeks ago
Yes checking with LocalUser
or LocalUserId
would make more sense. I dont think its a problem in practice because remote users cannot call the api (as evidenced by using local_user_view
for these calls), and I dont think this check is used for federation. Still better to change it.
Okay this is done. I needed to refactor several views to receive the LocalUser
, rather than the PersonId
.
CommentView::read
functions. Thevisible_communities_only
function only allows you to view local communities if my_person is passed.@dullbananas logically that check doesn't make sense to me. Should the visible_communities_only function be checking for a
local_user_id
, since those are local only, not aperson_id
, which could be a federated person?