Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
1197ec10
Commit
1197ec10
authored
May 24, 2018
by
normandy
Browse files
Rewrite block fetch query
parent
72b93d13
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/web/activity_pub/utils.ex
View file @
1197ec10
...
...
@@ -366,8 +366,9 @@ def fetch_latest_block(%User{ap_id: blocker_id}, %User{ap_id: blocked_id}) do
fragment
(
"? @> ?"
,
activity
.
data
,
^
%{
type:
"Block"
,
actor:
blocker_id
,
object:
blocked_id
}
^
%{
type:
"Block"
,
object:
blocked_id
}
),
where:
activity
.
actor
==
^
blocker_id
,
order_by:
[
desc:
:id
],
limit:
1
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment