shoutsByLayout, no checks

This commit is contained in:
tonyrewin 2022-11-12 21:13:23 +03:00
parent 3ae65b0c36
commit 25dd0ba553
3 changed files with 18 additions and 13 deletions

5
CHECKS
View File

@ -1,5 +0,0 @@
WAIT=30
TIMEOUT=10
ATTEMPTS=60 # 60 * 30 = 30 min
/ Playground

View File

@ -347,7 +347,7 @@ def prepare_html_body(entry):
def extract_html(entry):
body_orig = entry.get("body").replace('\(', '(').replace('/)', ')') or ""
body_orig = (entry.get("body") or "").replace('\(', '(').replace('/)', ')')
media = entry.get("media", [])
kind = entry.get("type") or ""
print("[extract] kind: " + kind)

View File

@ -26,12 +26,21 @@ type AuthResult {
type ChatMember {
slug: String!
name: String!
pic: String
userpic: String
invitedAt: DateTime
invitedBy: String # user slug
# TODO: add more
}
type Author {
slug: String!
name: String
userpic: String
stat: AuthorStat
roles: [Role] # in different communities
lastSeen: DateTime
}
type Result {
error: String
uids: [String]
@ -43,8 +52,8 @@ type Result {
members: [ChatMember]
shout: Shout
shouts: [Shout]
author: User
authors: [User]
author: Author
authors: [Author]
reaction: Reaction
reactions: [Reaction]
topic: Topic
@ -212,19 +221,20 @@ type Query {
signOut: AuthResult!
# profile
getUsersBySlugs(slugs: [String]!): [User]!
userFollowers(slug: String!): [User]!
userFollowedAuthors(slug: String!): [User]!
getUsersBySlugs(slugs: [String]!): [Author]!
userFollowers(slug: String!): [Author]!
userFollowedAuthors(slug: String!): [Author]!
userFollowedTopics(slug: String!): [Topic]!
userFollowedCommunities(slug: String!): [Community]!
userReactedShouts(slug: String!): [Shout]! # test
getUserRoles(slug: String!): [Role]!
authorsAll: [User]!
authorsAll: [Author]!
getAuthor(slug: String!): User!
# shouts
getShoutBySlug(slug: String!): Shout!
shoutsForFeed(offset: Int!, limit: Int!): [Shout]! # test
shoutsByLayout(layout: String, amount: Int!, offset: Int!): [Shout]!
shoutsByTopics(slugs: [String]!, offset: Int!, limit: Int!): [Shout]!
shoutsByAuthors(slugs: [String]!, offset: Int!, limit: Int!): [Shout]!
shoutsByCommunities(slugs: [String]!, offset: Int!, limit: Int!): [Shout]!