mirror of https://github.com/pixelfed/pixelfed.git
Update Inbox, only log new activities
This commit is contained in:
parent
802dd326ce
commit
8f2457bbc8
|
@ -41,9 +41,15 @@ class Inbox
|
||||||
{
|
{
|
||||||
$this->handleVerb();
|
$this->handleVerb();
|
||||||
|
|
||||||
(new Activity())->create([
|
if(!Activity::where('data->id', $this->payload['id'])->exists()){
|
||||||
'data' => json_encode($this->payload)
|
(new Activity())->create([
|
||||||
]);
|
'to_id' => $this->profile->id,
|
||||||
|
'data' => json_encode($this->payload)
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
return;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function handleVerb()
|
public function handleVerb()
|
||||||
|
|
Loading…
Reference in New Issue