[CORE][VisibilityScope] Use enum type instead of Bitmap

This commit is contained in:
2021-12-26 17:31:53 +00:00
parent 6f0d9add08
commit a1d9909379
5 changed files with 24 additions and 26 deletions

View File

@@ -66,7 +66,7 @@ abstract class FeedController extends Controller
foreach ($notes as $note) {
switch ($note->getScope()) {
case VisibilityScope::LOCAL: // The controller handles it if private
case VisibilityScope::PUBLIC:
case VisibilityScope::EVERYWHERE:
$filtered_notes[] = $note;
break;
case VisibilityScope::ADDRESSEE: