kopia lustrzana https://github.com/pixelfed/pixelfed
Update StatusController
rodzic
5a6dcf0ee5
commit
8fecceed51
|
@ -22,7 +22,7 @@ class StatusController extends Controller
|
||||||
$user = Profile::whereUsername($username)->firstOrFail();
|
$user = Profile::whereUsername($username)->firstOrFail();
|
||||||
|
|
||||||
$status = Status::whereProfileId($user->id)
|
$status = Status::whereProfileId($user->id)
|
||||||
->where('visibility', '!=', 'draft')
|
->whereNotIn('visibility',['draft','direct'])
|
||||||
->findOrFail($id);
|
->findOrFail($id);
|
||||||
|
|
||||||
if($status->visibility == 'private' || $user->is_private) {
|
if($status->visibility == 'private' || $user->is_private) {
|
||||||
|
|
Ładowanie…
Reference in New Issue