forked from mirror/pixelfed
Update Inbox, only log new activities
This commit is contained in:
parent
802dd326ce
commit
8f2457bbc8
1 changed files with 9 additions and 3 deletions
|
@ -41,11 +41,17 @@ class Inbox
|
|||
{
|
||||
$this->handleVerb();
|
||||
|
||||
if(!Activity::where('data->id', $this->payload['id'])->exists()){
|
||||
(new Activity())->create([
|
||||
'to_id' => $this->profile->id,
|
||||
'data' => json_encode($this->payload)
|
||||
]);
|
||||
}
|
||||
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
public function handleVerb()
|
||||
{
|
||||
$verb = (string) $this->payload['type'];
|
||||
|
|
Loading…
Reference in a new issue