mirror of
https://github.com/friendica/friendica
synced 2025-04-29 00:24:24 +02:00
Update function / rearrange tab order
This commit is contained in:
parent
5144654067
commit
e186395198
4 changed files with 28 additions and 11 deletions
|
@ -87,6 +87,10 @@ class Engagement
|
|||
Verb::getID(Activity::FOLLOW), Verb::getID(Activity::VIEW), Verb::getID(Activity::READ)
|
||||
])
|
||||
];
|
||||
if (($engagement['comments'] == 0) && ($engagement['activities'] == 0)) {
|
||||
Logger::debug('No comments nor activities. Engagement not stored', ['fields' => $engagement]);
|
||||
return;
|
||||
}
|
||||
$ret = DBA::insert('post-engagement', $engagement, Database::INSERT_UPDATE);
|
||||
Logger::debug('Engagement stored', ['fields' => $engagement, 'ret' => $ret]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue