Skip to content

Commit

Permalink
remove obsolete invites adn readers Page attr
Browse files Browse the repository at this point in the history
close #364
  • Loading branch information
vincent-peugnet committed Nov 12, 2023
1 parent 86c5960 commit 094a68e
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 52 deletions.
2 changes: 0 additions & 2 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ Page related api
"cindy",
"vincent"
],
"invites": [],
"readers": [],
"displaycount": 1,
"visitcount": 0,
"editcount": 3,
Expand Down
28 changes: 0 additions & 28 deletions app/class/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ abstract class Page extends Item
protected $favicon;
protected $thumbnail;
protected $authors;
protected $invites;
protected $readers;
protected $displaycount;
protected $visitcount;
protected $editcount;
Expand Down Expand Up @@ -118,8 +116,6 @@ public function reset()
$this->setfavicon('');
$this->setthumbnail('');
$this->setauthors([]);
$this->setinvites([]);
$this->setreaders([]);
$this->setvisitcount(0);
$this->seteditcount(0);
$this->setdisplaycount(0);
Expand Down Expand Up @@ -371,16 +367,6 @@ public function authors($type = 'array')
}
}

public function invites($type = 'array')
{
return $this->invites;
}

public function readers($type = 'array')
{
return $this->invites;
}

public function displaycount($type = 'int'): int
{
return $this->displaycount;
Expand Down Expand Up @@ -696,20 +682,6 @@ public function setauthors($authors)
}
}

public function setinvites($invites)
{
if (is_array($invites)) {
$this->invites = array_values(array_filter($invites));
}
}

public function setreaders($readers)
{
if (is_array($readers)) {
$this->readers = array_values(array_filter($readers));
}
}

/**
* @deprecated 2.4.0 Replaced by displaycount
*/
Expand Down
2 changes: 0 additions & 2 deletions tests/data/Servicerenderv1Test/body-test.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
"authors": [
"vincent"
],
"invites": [],
"readers": [],
"displaycount": 16,
"visitcount": 0,
"editcount": 48,
Expand Down
2 changes: 0 additions & 2 deletions tests/data/Servicerenderv1Test/date-time-test.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
"authors": [
"vincent"
],
"invites": [],
"readers": [],
"displaycount": 0,
"visitcount": 0,
"editcount": 0,
Expand Down
2 changes: 0 additions & 2 deletions tests/data/Servicerenderv1Test/empty-test.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
"authors": [
"vincent"
],
"invites": [],
"readers": [],
"displaycount": 0,
"visitcount": 0,
"editcount": 0,
Expand Down
2 changes: 0 additions & 2 deletions tests/data/Servicerenderv1Test/external-links-test.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
"authors": [
"vincent"
],
"invites": [],
"readers": [],
"displaycount": 85,
"visitcount": 0,
"editcount": 24,
Expand Down
2 changes: 0 additions & 2 deletions tests/data/Servicerenderv1Test/markdown-test-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
"authors": [
"vincent"
],
"invites": [],
"readers": [],
"displaycount": 2,
"visitcount": 0,
"editcount": 1,
Expand Down
2 changes: 0 additions & 2 deletions tests/data/Servicerenderv1Test/markdown-test.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
"authors": [
"vincent"
],
"invites": [],
"readers": [],
"displaycount": 9,
"visitcount": 0,
"editcount": 14,
Expand Down
2 changes: 0 additions & 2 deletions tests/data/Servicerenderv2Test/body-test-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
"authors": [
"vincent"
],
"invites": [],
"readers": [],
"displaycount": 12,
"visitcount": 0,
"editcount": 24,
Expand Down
2 changes: 0 additions & 2 deletions tests/data/Servicerenderv2Test/date-time-test-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
"authors": [
"vincent"
],
"invites": [],
"readers": [],
"displaycount": 2,
"visitcount": 0,
"editcount": 4,
Expand Down
2 changes: 0 additions & 2 deletions tests/data/Servicerenderv2Test/empty-test-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
"authors": [
"vincent"
],
"invites": [],
"readers": [],
"displaycount": 1,
"visitcount": 0,
"editcount": 0,
Expand Down
2 changes: 0 additions & 2 deletions tests/data/Servicerenderv2Test/external-links-test-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
"authors": [
"vincent"
],
"invites": [],
"readers": [],
"displaycount": 1,
"visitcount": 0,
"editcount": 1,
Expand Down
2 changes: 0 additions & 2 deletions tests/data/Servicerenderv2Test/markdown-test-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
"authors": [
"vincent"
],
"invites": [],
"readers": [],
"displaycount": 1,
"visitcount": 0,
"editcount": 1,
Expand Down

0 comments on commit 094a68e

Please sign in to comment.