Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Add) User Request Sharing + Stats + Privacy Fixes #590

Merged
merged 42 commits into from
Feb 22, 2019
Merged

Conversation

singularity43
Copy link
Contributor

1: Users can now view other users requests (if not anonymous and if user doesnt hide privacy).
2: Admins/staff can see requests.
3: New stat on profile: requested and requests filled.
4: Fix missing hide from peer block (by adding new group targeted setting).
5: Add hide from online block (by adding new group targeted setting).

Close out bug + user request.

Add load for privacy.
Add load for peers and history.
Add support for new privacy options.
Placeholder isVisible.
Add request and other groups.
New privacy options.
For new requests filter.
For fixed nav bar.
Respect new visible flag.
Add new options.
Respect new privacy.
Respect new privacy.
For new nav.
Check if requested should be shown.
May be removed soon.
Move resurrections.
Move resurrections.
New features.
For user requests.
For user requests.
Add request stats.
User requests.
For privacy updates/requests.
@@ -112,6 +113,9 @@ public function profile($slug, $id)
$realdownload = $user->downloaded + $bondownload;
$invitedBy = Invite::where('accepted_by', '=', $user->id)->first();

$requested = TorrentRequest::where('user_id','=',$user->id)->count();
$filled = TorrentRequest::where('filled_by','=',$user->id)->where('approved_by','is not','null')->count();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This query is not valid. Should be:

$filled = TorrentRequest::where('filled_by','=',$user->id)->whereNotNull('approved_by')->count();

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's dirty, but it's not not valid.

Fixing.

@HDVinnie HDVinnie merged commit 6965e34 into master Feb 22, 2019
@HDVinnie HDVinnie deleted the quick-updates branch February 22, 2019 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants