Skip to content

Commit 1da062d

Browse files
committed
Fix update only publications
1 parent a21d008 commit 1da062d

File tree

3 files changed

+130
-26
lines changed

3 files changed

+130
-26
lines changed

README.md

+83-15
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,92 @@
1-
# Creary
21

3-
## First steps
2+
![alt text](https://i.imgur.com/kmr8biL.jpg)
43

5-
Recommended versions:
4+
# Creary.net
65

7-
- PHP: 7.3 or superior
8-
- Composer: 2.0.8
9-
- Node: 12
6+
Creary is the social network of creative portfolios based on the blockchain that rewards creatives and curators.
107

11-
The project uses PHP extensions for MySQL and MongoDB, before installing the dependencies check first if you have activated the extensions on the `php.ini` file.
8+
An algorithm distributes tokens constantly to authors and curators as a reward according to the vote of all users in the community. In Creary, authors can register the copyright of a creation and distribute their work directly to their fans.
9+
Join the decentralized community of Creary now and start making profits from your creative works.
1210

13-
For install all the dependencies run the following scripts:
11+
### Create, inspire, influence
12+
Creary is the social network of creative portfolios based on the blockchain that rewards creatives and curators. In Creary, authors can register the copyright of a creation and distribute their work directly to their fans.
1413

15-
```bash
16-
composer install
17-
npm install
14+
### Share your creative works and start earning rewards.
15+
Publish your creative portfolio and make your community of followers grow. Follow your friends and favorite creatives and earn rewards in digital tokens getting votes (likes) from the community. An algorithm distributes tokens constantly to authors and curators as a reward according to the vote of all users in the community.
16+
17+
In Creary you can sell your content directly to your followers without intermediaries or commissions. Now you will be your own bank and you will be able to manage your earnings in tokens inside the platform. You can sell and change these tokens or transfer them to other users.
18+
19+
### Certify your creations safely
20+
Creary offers a public and transparent alternative of intellectual property registration making intelligent use of the revolutionary distributed blockchain technology. The platform automatically creates incorruptible timestamps that issue a certificate of authorship and a distribution license for any digital work.
21+
22+
This feature automatically protects the work of artists, designers, and multimedia creatives who share their works on the platform.
23+
24+
### TECHNOLOGY
25+
Main features of the technological ecosystem of Creary
26+
27+
#### Proof of Existence
28+
Certificate of creation registration based on the blockchain.
29+
30+
#### IPFS
31+
InterPlanetary File System protocol.
32+
33+
#### Marketplace
34+
P2P marketplace of graphic and multimedia resources.
35+
36+
#### Tokens wallet
37+
Send, receive and manage your earnings.
38+
39+
#### Proof of Creation (POC)
40+
An algorithm rewards authors and curators for their work.
41+
42+
#### Reputation y Voting power
43+
Those who get more tokens will have more influence in the community.
44+
45+
#### Tokens Exchange
46+
Tokens exchange markets without fees.
47+
48+
#### Data transparency
49+
Open source data ledger. Public and transparent.
50+
51+
52+
### License
53+
54+
#### Software License
55+
```
56+
GNU GPLv3
57+
58+
Creativechain is free software: you can redistribute it and/or modify
59+
it under the terms of the GNU General Public License as published by
60+
the Free Software Foundation, either version 3 of the License, or
61+
(at your option) any later version.
62+
63+
Creativechain is distributed in the hope that it will be useful,
64+
but WITHOUT ANY WARRANTY; without even the implied warranty of
65+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
66+
GNU General Public License for more details.
67+
68+
You should have received a copy of the GNU General Public License
69+
along with Creativechain. If not, see <http://www.gnu.org/licenses/gpl.html>.
1870
```
1971

20-
## Daily workflow
72+
#### Graphic Content License
2173

22-
- Create/copy the `.env` file in the root folder and include the secrets
23-
- Start the development server, running the following command `php artisan serve`, by default is used the port 8000
24-
- For compile styles and views, run `npm run dev`. For a more easy workflow during development also you can run `npm run watch` for check instantly the changes.
74+
```
75+
Creative Commons License BY-SA 4.0
76+
77+
Your are free to:
78+
79+
- Copy and redistribute the material in any medium or format.
80+
- Remix, transform, and build upon the material for any purpose, even commercially.
81+
82+
Under the follwing terms:
83+
84+
1 - Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made.
85+
You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
86+
87+
2 - ShareAlike — If you remix, transform, or build upon the material, you must distribute your contributions under
88+
the same license as the original.
89+
90+
No additional restrictions — You may not apply legal terms or technological measures that legally restrict others
91+
from doing anything the license permits.
92+
```

app/Jobs/UpdateCommentJob.php

+16-11
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,26 @@ public function __construct(object $data)
3636
public function handle()
3737
{
3838
//
39-
if ($this->data->type === 'comment' && $this->data->parent_author === '' || $this->data->type === 'reblog') {
40-
$comment = Comments::query()
41-
->where('permlink', $this->data->permlink)
42-
->where('author', $this->data->author)
43-
->first();
44-
45-
if (!$comment) {
46-
$comment = new Comments();
47-
}
39+
if (($this->data->type === 'comment' && $this->data->parent_author === '') || $this->data->type === 'reblog') {
4840

4941
$content = (new CrearyClient())
5042
->getPost($this->data->author, $this->data->permlink);
5143

52-
$comment->applyData($content)
53-
->save();
44+
//Check if is comment or publication
45+
if ($content && $content->parent_author === '') {
46+
$comment = Comments::query()
47+
->where('permlink', $this->data->permlink)
48+
->where('author', $this->data->author)
49+
->first();
50+
51+
if (!$comment) {
52+
$comment = new Comments();
53+
}
54+
55+
$comment->applyData($content)
56+
->save();
57+
}
58+
5459
}
5560
}
5661
}

dev/INSTALL.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Creary
2+
3+
## Requirements
4+
- NodeJS v12 or later
5+
- PHP 7.3 or later
6+
- Composer 2.0.8 or later
7+
- MySQL v8.0 or later / MariaDB v10.4 or later
8+
- MongoDB v4.4.3 or later
9+
10+
## First steps
11+
12+
Recommended versions:
13+
14+
- PHP: 7.3 or superior
15+
- Composer: 2.0.8
16+
- Node: 12
17+
18+
The project uses PHP extensions for MySQL and MongoDB, before installing the dependencies check first if you have activated the extensions on the `php.ini` file.
19+
20+
For install all the dependencies run the following scripts:
21+
22+
```bash
23+
composer install
24+
npm install
25+
```
26+
27+
## Daily workflow
28+
29+
- Create/copy the `.env` file in the root folder and include the secrets
30+
- Start the development server, running the following command `php artisan serve`, by default is used the port 8000
31+
- For compile styles and views, run `npm run dev`. For a more easy workflow during development also you can run `npm run watch` for check instantly the changes.

0 commit comments

Comments
 (0)