mirror of
https://github.com/friendica/friendica
synced 2024-12-23 02:40:17 +00:00
Only show the difference between posting and receive date when there is a difference
This commit is contained in:
parent
75d31341c2
commit
3d701dd459
1 changed files with 3 additions and 2 deletions
|
@ -379,8 +379,9 @@ class Post extends BaseObject
|
|||
$tags = Term::populateTagsFromItem($item);
|
||||
|
||||
$ago = Temporal::getRelativeDate($item['created']);
|
||||
if (Config::get('system', 'show_received') && (abs(strtotime($item['created']) - strtotime($item['received'])) > Config::get('system', 'show_received_seconds'))) {
|
||||
$ago = L10n::t('%s (Received %s)', $ago, Temporal::getRelativeDate($item['received']));
|
||||
$ago_received = Temporal::getRelativeDate($item['received']);
|
||||
if (Config::get('system', 'show_received') && (abs(strtotime($item['created']) - strtotime($item['received'])) > Config::get('system', 'show_received_seconds')) && ($ago != $ago_received)) {
|
||||
$ago = L10n::t('%s (Received %s)', $ago, $ago_received);
|
||||
}
|
||||
|
||||
$tmp_item = [
|
||||
|
|
Loading…
Reference in a new issue