mirror of
https://github.com/friendica/friendica
synced 2025-05-04 09:04:11 +02:00
Don't transmit to archived inboxes
This commit is contained in:
parent
61ff99c410
commit
e4e9a20ac8
7 changed files with 70 additions and 19 deletions
|
@ -314,14 +314,15 @@ class HTTPSignature
|
|||
*
|
||||
* @param string $url The URL of the inbox
|
||||
* @param boolean $success Transmission status
|
||||
* @param boolean $shared The inbox is a shared inbox
|
||||
*/
|
||||
static private function setInboxStatus($url, $success)
|
||||
static public function setInboxStatus($url, $success, $shared = false)
|
||||
{
|
||||
$now = DateTimeFormat::utcNow();
|
||||
|
||||
$status = DBA::selectFirst('inbox-status', [], ['url' => $url]);
|
||||
if (!DBA::isResult($status)) {
|
||||
DBA::insert('inbox-status', ['url' => $url, 'created' => $now]);
|
||||
DBA::insert('inbox-status', ['url' => $url, 'created' => $now, 'shared' => $shared]);
|
||||
$status = DBA::selectFirst('inbox-status', [], ['url' => $url]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue