More Activity-based reasoning for saveActivity in Notice

If we can, get the activity ID from the activity itself, instead of the
supplied $options array.
This commit is contained in:
Mikael Nordfeldth
2014-07-14 23:54:58 +02:00
parent 1ee79dc379
commit c96f0aa30f
3 changed files with 14 additions and 16 deletions

View File

@@ -179,9 +179,6 @@ class FavoritePlugin extends ActivityHandlerPlugin
if (!isset($options['created'])) {
$options['created'] = !empty($act->time) ? common_sql_date($act->time) : common_sql_now();
}
if (!isset($options['uri'])) {
$options['uri'] = !empty($act->id) ? $act->id : $act->selfLink;
}
// We must have an objects[0] here because in isMyActivity we require the count to be == 1
$actobj = $act->objects[0];