mirror of
https://github.com/friendica/friendica
synced 2025-04-27 11:10:12 +00:00
Replace "id = parent" checks with "gravity" checks
This commit is contained in:
parent
133de9b524
commit
973abb6196
13 changed files with 56 additions and 56 deletions
|
@ -95,11 +95,11 @@ class Notification extends BaseFactory
|
|||
$item['author-avatar'] = $item['contact-avatar'];
|
||||
}
|
||||
|
||||
$item['label'] = (($item['id'] == $item['parent']) ? 'post' : 'comment');
|
||||
$item['label'] = (($item['gravity'] == GRAVITY_PARENT) ? 'post' : 'comment');
|
||||
$item['link'] = $this->baseUrl->get(true) . '/display/' . $item['parent-guid'];
|
||||
$item['image'] = Proxy::proxifyUrl($item['author-avatar'], false, Proxy::SIZE_MICRO);
|
||||
$item['url'] = $item['author-link'];
|
||||
$item['text'] = (($item['id'] == $item['parent'])
|
||||
$item['text'] = (($item['gravity'] == GRAVITY_PARENT)
|
||||
? $this->l10n->t("%s created a new post", $item['author-name'])
|
||||
: $this->l10n->t("%s commented on %s's post", $item['author-name'], $item['parent-author-name']));
|
||||
$item['when'] = DateTimeFormat::local($item['created'], 'r');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue