mirror of
https://github.com/friendica/friendica
synced 2024-12-23 17:20:16 +00:00
disable the output of the "posted" value in shares when item cache is enabled.
This commit is contained in:
parent
4f38969148
commit
3331e71e8e
1 changed files with 14 additions and 8 deletions
|
@ -260,6 +260,11 @@ function bb_ShareAttributes($match) {
|
|||
$profile = $matches[1];
|
||||
|
||||
$posted = "";
|
||||
|
||||
$itemcache = get_config("system","itemcache");
|
||||
|
||||
// relative dates only make sense when they aren't cached
|
||||
if ($itemcache == "") {
|
||||
preg_match("/posted='(.*?)'/ism", $attributes, $matches);
|
||||
if ($matches[1] != "")
|
||||
$posted = $matches[1];
|
||||
|
@ -269,6 +274,7 @@ function bb_ShareAttributes($match) {
|
|||
$posted = $matches[1];
|
||||
|
||||
$reldate = (($posted) ? " " . relative_date($posted) : '');
|
||||
}
|
||||
|
||||
$headline = '<div class="shared_header">';
|
||||
//$headline = '<br /><div class="shared_header">';
|
||||
|
|
Loading…
Reference in a new issue