clean
This commit is contained in:
parent
c6e045d5ee
commit
ebf08ea2ed
|
@ -53,8 +53,7 @@ async def follow(_, info, what, slug):
|
||||||
elif what == 'TOPIC':
|
elif what == 'TOPIC':
|
||||||
if not topic_follow(follower.id, slug):
|
if not topic_follow(follower.id, slug):
|
||||||
return {"error": "cant follow topic"}
|
return {"error": "cant follow topic"}
|
||||||
topic_query = select(Topic).where(Topic.slug == slug)
|
[topic] = get_with_stat(select(Topic).where(Topic.slug == slug))
|
||||||
[topic] = get_with_stat(topic_query)
|
|
||||||
if not topic:
|
if not topic:
|
||||||
return {"error": "topic is not found"}
|
return {"error": "topic is not found"}
|
||||||
follows = await update_follows_for_author(follower, 'topic', topic, True)
|
follows = await update_follows_for_author(follower, 'topic', topic, True)
|
||||||
|
|
|
@ -36,8 +36,8 @@ enum ReactionKind {
|
||||||
enum FollowingEntity {
|
enum FollowingEntity {
|
||||||
TOPIC
|
TOPIC
|
||||||
AUTHOR
|
AUTHOR
|
||||||
|
SHOUT
|
||||||
COMMUNITY
|
COMMUNITY
|
||||||
REACTIONS
|
|
||||||
}
|
}
|
||||||
|
|
||||||
enum InviteStatus {
|
enum InviteStatus {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user