We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3f7c65 commit 115b942Copy full SHA for 115b942
src/routes/follow.nim
@@ -8,6 +8,8 @@ proc addUserToFollowing*(following, toAdd: string): string =
8
var updated = following.split(",")
9
if updated == @[""]:
10
return toAdd
11
+ elif toAdd in updated:
12
+ return following
13
else:
14
updated = concat(updated, @[toAdd])
15
result = updated.join(",")
0 commit comments