Commit Graph

100 Commits

Author SHA1 Message Date
PyR8zdl
2efb3b7ad0 Update: Stops users from passively seeding to themselves.
This stops announce from sending peers to the users client that are from the same user.
This does not stop a user from manually adding their other peer to the client to seed to themselves.
With that being said if a users is found to be seeding to themselves that means they are activly trying to break the rules and should be banned.
2020-05-23 10:36:12 -05:00
HDVinnie
874cd3df9d update: announce controller 2020-05-13 13:08:48 -04:00
HDVinnie
86a7f40074 Revert "(Refactoring) Announce Controller: add new method for response torren…" 2020-04-30 05:13:30 -04:00
Viktor Mazur
e2f18f0c03 (Refactoring) Announce Controller: add new method for response torrentClient. 2020-04-25 15:24:32 +03:00
HDVinnie
4afdfbdade Apply fixes from StyleCI
[ci skip] [skip ci]
2020-04-19 05:31:13 +00:00
HDVinnie
78608a4666 refactor: space after sole ! operators
-  There should be a space after sole `!` operators
2020-04-14 22:31:48 -04:00
HDVinnie
ea2a12be15 refactor: closure to arrow function 2020-04-14 20:38:48 -04:00
HDVinnie
46aa876c06 refactor: add literal separator to numbers
- This is for PHP7.4 + only
- Adds an `_` as thousands separator in numbers
2020-04-14 20:25:07 -04:00
HDVinnie
c44f295a37 add: double upload permission to groups 2020-04-01 00:09:34 -04:00
HDVinnie
6160c03ede refactor: change variable with read only status and default value to a constant 2020-03-06 09:04:22 -05:00
HDVinnie
4b9c006a05 chore: phpdoc blocks cleanup 2020-03-05 10:46:14 -05:00
Ben Johnson
73bee5a9b3 tests: Add Announce and Article controller tests 2020-02-27 14:40:51 -05:00
HDVinnie
8fa0839384 update: announce controller
- dont cache connections
2020-02-25 09:53:56 -05:00
HDVinnie
605c337204 refactor: encapsed strings to sprintf 2020-02-17 13:52:20 -05:00
HDVinnie
3b72e0a3f7 update: announce controller 2020-02-14 16:35:20 -05:00
HDVinnie
0eb606aa51 refactor: remove unnecessary ternary expression 2020-02-14 13:08:04 -05:00
HDVinnie
b275e9ba82 refactor: combine nested if statements
### `Combine If Rector`

Merges nested if statements

```diff
 class SomeClass {
     public function run()
     {
-        if ($cond1) {
-            if ($cond2) {
-                return 'foo';
-            }
+        if ($cond1 && $cond2) {
+            return 'foo';
         }
     }
 }
```
2020-02-13 11:26:54 -05:00
HDVinnie
c8d953a3ad Merge branch 'master' into development 2020-02-12 18:03:21 -05:00
HDVinnie
780e0c1f0e chore: update license block 2020-02-12 15:05:34 -05:00
HDVinnie
8d72989943 Apply fixes from StyleCI
[ci skip] [skip ci]
2020-02-12 17:41:17 +00:00
HDVinnie
611fcd6bc1 refactor: if / else / elseif statements
- Change If Else Value Assign To Early Return
- Change Nested Ifs To Early Return
- Remove Always Else
2020-02-12 12:34:34 -05:00
HDVinnie
ea58e49ad2 (Update) Cache Queries 2020-02-10 09:46:05 -05:00
HDVinnie
4a0d127502 (Update) Simplify givePeers function
- merged the two function and added a filter_flag parameter
2020-02-08 11:10:17 -05:00
HDVinnie
db55d77880 (Update) Announce Controller 🚀 2020-02-07 16:41:00 -05:00
HDVinnie
6810711223 Apply fixes from StyleCI
[ci skip] [skip ci]
2020-02-07 21:27:19 +00:00
HDVinnie
fdc4a2c545 (Update) Announce Controller 🚀
- add observers and cache
2020-02-07 16:21:17 -05:00
HDVinnie
c9c7704547 (Update) Announce Controller 🚀
- Shorten If Else Statement
2020-02-04 18:15:36 -05:00
HDVinnie
443d017610 (Update) Announce Controller 🚀
- minor cleanup
2020-02-04 17:52:17 -05:00
HDVinnie
b6553ce584 (Update) Announce Controller 🚀
- cleanup
- rearrange
- better comments
2020-02-04 17:34:06 -05:00
HDVinnie
9bb7acde3b (Fix) Annnounce Controller 🐛
- close #1077
2020-01-22 13:46:53 -05:00
HDVinnie
ac34c65e8f (Fix) Announce Controller 🐛
- close #1074
2020-01-22 12:09:59 -05:00
HDVinnie
9a893662de Apply fixes from StyleCI
[ci skip] [skip ci]
2020-01-08 16:28:32 +00:00
HDVinnie
8ec9b3ccb9 (Update) Announce Controller 🚀 2019-11-20 13:59:11 -05:00
HDVinnie
da25ee7ead Apply fixes from StyleCI
[ci skip] [skip ci]
2019-11-20 14:13:55 +00:00
HDVinnie
3d9dce9012 (Update) Announce Controller 🚀 2019-11-20 09:07:46 -05:00
HDVinnie
9e14c55948 (Update) Announce Controller 🚀
- forever cache system required group checks.
- eager load user group relation with only the two specific columns used.
- eager load user history
2019-11-19 13:50:21 -05:00
HDVinnie
f59f4a4da9 Revert "(Update) Announce Controller 🚀"
This reverts commit 2409976942.
2019-11-19 13:46:21 -05:00
HDVinnie
2409976942 (Update) Announce Controller 🚀
- forever cache system required group checks.
- eager load user group relation with only the two specific columns used.
- eager load user history
2019-11-19 13:45:59 -05:00
HDVinnie
d889971834 Apply fixes from StyleCI
[ci skip] [skip ci]
2019-11-05 22:40:30 +00:00
HDVinnie
6ad846084b (Update) AnnounceController 🚀 2019-11-05 11:24:58 -05:00
HDVinnie
eed3b51c92 (Update) CRUDDY PT.7 🚀 2019-10-25 17:35:14 -04:00
HDVinnie
8e989b5ef4 (Update) AnnounceController 🚀 2019-06-30 10:08:59 -04:00
HDVinnie
b88049cf6a (Update) AnnounceController 🚀 2019-06-16 02:11:12 -04:00
Max Kovalenko
56c7e68b5f misc phpdoc fixes 2019-05-21 20:01:15 +03:00
Laravel Shift
4853105815 Shift to consistent, fluent response chains 2019-05-09 00:05:17 +00:00
buaapyj
58b6a78119 Update AnnounceController.php 2019-05-04 03:17:55 +08:00
buaapyj
fcfc081019 Update AnnounceController.php 2019-05-04 03:16:35 +08:00
buaapyj
e15948828d Update AnnounceController.php 2019-05-04 03:15:40 +08:00
buaapyj
7118cf1c44 Update AnnounceController.php
add Ipv6 support for Tracker based on IPv6 Tracker Extension(BEP 7 on BitTorrent.org) #699
2019-05-04 03:13:45 +08:00
buaapyj
7bb55c139b Update AnnounceController.php
add Ipv6 support for Tracker based on IPv6 Tracker Extension(BEP 7 on BitTorrent.org) #699
2019-05-04 03:09:53 +08:00