Skip to content
Snippets Groups Projects
Commit 0cbad669 authored by Marcela Ribeiro de Oliveira's avatar Marcela Ribeiro de Oliveira
Browse files

Merge branch 'master' into stable

parents 6eba3618 461cd2ed
No related branches found
No related tags found
No related merge requests found
...@@ -48,7 +48,11 @@ class V1::FeedController < ApplicationController ...@@ -48,7 +48,11 @@ class V1::FeedController < ApplicationController
end end
end end
values[0] = query[0..-3]+")" # remove trailing "or" on the query if query[-1] == "("
query = query[0..-6]
else
values[0] = query[0..-3]+")" # remove trailing "or" on the query
end
return PublicActivity::Activity.where(key: activities_filter).where(values).order(created_at: :desc) return PublicActivity::Activity.where(key: activities_filter).where(values).order(created_at: :desc)
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment