diff options
Diffstat (limited to 'engine/lib/river2.php')
-rw-r--r-- | engine/lib/river2.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/river2.php b/engine/lib/river2.php index 7793ea192..3d826f517 100644 --- a/engine/lib/river2.php +++ b/engine/lib/river2.php @@ -21,8 +21,8 @@ * @return true|false Depending on success */ function add_to_river($view,$action_type,$subject_guid,$object_guid,$access_id = "",$posted = 0, $annotation_id = 0) { - // Sanitise variables - if (!elgg_view_exists($view)) { + // use default viewtype for when called from REST api + if (!elgg_view_exists($view, 'default')) { return false; } if (!($subject = get_entity($subject_guid))) { |