Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hivemind
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
hivemind
Commits
8c7b673c
Commit
8c7b673c
authored
4 years ago
by
Jason Salyers
Browse files
Options
Downloads
Patches
Plain Diff
[JES] Replace my hardcoded name with variable observer
parent
85449392
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hive/server/common/mutes.py
+2
-2
2 additions, 2 deletions
hive/server/common/mutes.py
with
2 additions
and
2 deletions
hive/server/common/mutes.py
+
2
−
2
View file @
8c7b673c
...
@@ -10,10 +10,10 @@ log = logging.getLogger(__name__)
...
@@ -10,10 +10,10 @@ log = logging.getLogger(__name__)
GET_BLACKLISTED_ACCOUNTS
=
"""
GET_BLACKLISTED_ACCOUNTS
=
"""
with blacklisted_users as (select following,
'
my_blacklist
'
as source from hive_follows where follower =
with blacklisted_users as (select following,
'
my_blacklist
'
as source from hive_follows where follower =
(select id from hive_accounts where name =
'
jes2850
'
) and blacklisted
(select id from hive_accounts where name =
:observer
) and blacklisted
union all
union all
select following,
'
my_followed_blacklists
'
as source from hive_follows where follower in (select following from hive_follows where follower =
select following,
'
my_followed_blacklists
'
as source from hive_follows where follower in (select following from hive_follows where follower =
(select id from hive_accounts where name =
'
jes2850
'
) and follow_blacklists))
(select id from hive_accounts where name =
:observer
) and follow_blacklists))
select hive_accounts.name, blacklisted_users.source from hive_accounts join blacklisted_users on (hive_accounts.id = blacklisted_users.following)
select hive_accounts.name, blacklisted_users.source from hive_accounts join blacklisted_users on (hive_accounts.id = blacklisted_users.following)
"""
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment