Skip to content

Commit 715275b

Browse files
committed
@mention claimants
1 parent adb949d commit 715275b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/algora/bounties/jobs/notify_claim.ex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,18 @@ defmodule Algora.Bounties.Jobs.NotifyClaim do
6060
end
6161

6262
defp names([claim]) do
63-
claim.user.provider_login
63+
"@#{claim.user.provider_login}"
6464
end
6565

6666
defp names([c1, c2]) do
67-
"#{c1.user.provider_login} and #{c2.user.provider_login}"
67+
"@#{c1.user.provider_login} and @#{c2.user.provider_login}"
6868
end
6969

7070
defp names([c1, c2, c3]) do
71-
"#{c1.user.provider_login}, #{c2.user.provider_login} and #{c3.user.provider_login}"
71+
"@#{c1.user.provider_login}, @#{c2.user.provider_login} and @#{c3.user.provider_login}"
7272
end
7373

7474
defp names([c1, c2 | claims]) do
75-
"#{c1.user.provider_login}, #{c2.user.provider_login} and #{length(claims)} others"
75+
"@#{c1.user.provider_login}, @#{c2.user.provider_login} and #{length(claims)} others"
7676
end
7777
end

0 commit comments

Comments
 (0)