mirror of
https://github.com/friendica/friendica
synced 2025-04-27 15:10:11 +00:00
Bugfix: Only send a notifier when the item was really edited
This commit is contained in:
parent
3b2752c2fe
commit
b333c7ae2e
3 changed files with 4 additions and 7 deletions
|
@ -75,8 +75,9 @@ class Item extends BaseObject
|
|||
Term::insertFromFileFieldByItemId($item['id']);
|
||||
self::updateThread($item['id']);
|
||||
|
||||
// We only need to notfiy others when it is an original entry from us
|
||||
if ($item['origin']) {
|
||||
// We only need to notfiy others when it is an original entry from us.
|
||||
// Only call the notifier when the item has some content relevant change.
|
||||
if ($item['origin'] && in_array('edited', array_keys($fields))) {
|
||||
Worker::add(PRIORITY_HIGH, "Notifier", 'edit_post', $item['id']);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue