mirror of
https://github.com/friendica/friendica
synced 2025-04-28 21:44:22 +02:00
Use Mastodon standard edited_at field for tracking edit time
This commit is contained in:
parent
8ce90d7b41
commit
1e48978664
4 changed files with 16 additions and 18 deletions
|
@ -41,9 +41,6 @@ class FriendicaExtension extends BaseDataTransferObject
|
|||
/** @var string|null (Datetime) */
|
||||
protected $commented_at;
|
||||
|
||||
/** @var string|null (Datetime) */
|
||||
protected $edited_at;
|
||||
|
||||
/** @var string|null (Datetime) */
|
||||
protected $received_at;
|
||||
|
||||
|
@ -68,7 +65,6 @@ class FriendicaExtension extends BaseDataTransferObject
|
|||
string $title,
|
||||
?string $changed_at,
|
||||
?string $commented_at,
|
||||
?string $edited_at,
|
||||
?string $received_at,
|
||||
int $dislikes_count,
|
||||
FriendicaDeliveryData $delivery_data
|
||||
|
@ -76,7 +72,6 @@ class FriendicaExtension extends BaseDataTransferObject
|
|||
$this->title = $title;
|
||||
$this->changed_at = $changed_at;
|
||||
$this->commented_at = $commented_at;
|
||||
$this->edited_at = $edited_at;
|
||||
$this->received_at = $received_at;
|
||||
$this->delivery_data = $delivery_data;
|
||||
$this->dislikes_count = $dislikes_count;
|
||||
|
@ -100,15 +95,6 @@ class FriendicaExtension extends BaseDataTransferObject
|
|||
return $this->commented_at;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current edited_at string or null if not set
|
||||
* @return ?string
|
||||
*/
|
||||
public function editedAt(): ?string
|
||||
{
|
||||
return $this->edited_at;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current received_at string or null if not set
|
||||
* @return ?string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue