Commit Graph

111 Commits

Author SHA1 Message Date
HDVinnie
2bd2f4f71a update: announce controller
- 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.
2020-08-22 15:48:57 -04:00
HDVinnie
79d34fa967 Apply fixes from StyleCI
[ci skip] [skip ci]
2020-08-19 00:41:28 +00:00
HDVinnie
70aa4a82b8 update: announce controller
- enforce min interval
2020-08-18 20:41:16 -04:00
HDVinnie
bf97d7b68c Apply fixes from StyleCI
[ci skip] [skip ci]
2020-08-18 16:23:14 +00:00
HDVinnie
3587e08e71 update: announce controller 2020-08-18 12:22:57 -04:00
HDVinnie
7756916925 update: announce controller
- add credits for Rhilip
2020-08-17 18:42:10 -04:00
HDVinnie
748f56eab1 update: announce controller 2020-08-17 17:32:09 -04:00
HDVinnie
cf3e394379 update: announce controller 2020-08-17 15:32:42 -04:00
HDVinnie
cbd4397f7a Apply fixes from StyleCI
[ci skip] [skip ci]
2020-06-30 20:06:01 +00:00
HDVinnie
4c28a4ebf7 update: announce controller 2020-06-03 14:30:24 -04:00
HDVinnie
f31bb3b689 update: announce controller
- WIP more checks to be added like client whitelist.
2020-06-01 17:55:57 -04:00
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