Skip to content
GitLab
Explore
Sign in
Register
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
a39cfe83
Commit
a39cfe83
authored
4 years ago
by
Bartek Wrona
Browse files
Options
Downloads
Patches
Plain Diff
Fixed call to bridge_get_account_posts_by_blog at bridge_api/methods.py
parent
7925d8b6
No related branches found
No related tags found
2 merge requests
!456
Release candidate v1 24
,
!353
Notification API performance optimizations
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hive/server/bridge_api/methods.py
+1
-1
1 addition, 1 deletion
hive/server/bridge_api/methods.py
with
1 addition
and
1 deletion
hive/server/bridge_api/methods.py
+
1
−
1
View file @
a39cfe83
...
...
@@ -284,7 +284,7 @@ async def get_account_posts(context, sort:str, account:str, start_author:str='',
sql
=
None
account_posts
=
True
# set when only posts (or reblogs) of given account are supposed to be in results
if
sort
==
'
blog
'
:
sql
=
"
SELECT * FROM bridge_get_account_posts_by_blog( (:account)::VARCHAR, (:author)::VARCHAR, (:permlink)::VARCHAR, (:limit)::
SMALLINT
)
"
sql
=
"
SELECT * FROM bridge_get_account_posts_by_blog( (:account)::VARCHAR, (:author)::VARCHAR, (:permlink)::VARCHAR, (:limit)::
INTEGER
)
"
elif
sort
==
'
feed
'
:
return
await
_get_account_posts_by_feed
(
db
,
account
,
start_author
,
start_permlink
,
limit
)
elif
sort
==
'
posts
'
:
...
...
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