Commit graph

4851 commits

Author SHA1 Message Date
Thibault Duplessis 70db2863e2 include closed accounts in /api/users
Also:
- always use `disabled: true` and not `closed: true` according to docs
- don't release any info about closed accounts
2021-10-03 18:14:09 +02:00
Thibault Duplessis 682dcbfb45
Merge pull request #9916 from benediktwerner/remove-mod-search-method-dropdown
Remove mod search method dropdown
2021-10-03 17:36:15 +02:00
Thibault Duplessis fee89d7af3 casual puzzle play without rating updates 2021-10-03 11:57:07 +02:00
Benedikt Werner 506c948568
Remove mod search method dropdown 2021-10-03 07:57:20 +02:00
Thibault Duplessis 797c7b759a download all tournament games of a single player 2021-10-02 09:58:20 +02:00
Thibault Duplessis 906571a231
Merge pull request #9886 from kraktus/note_every_zulip
Create a zulip note whenever a mod sends to Zulip
2021-10-02 08:33:16 +02:00
Thibault Duplessis 63ab3e23aa code tweak 2021-09-30 09:38:00 +02:00
Thibault Duplessis 149c365521
Merge pull request #9894 from rglbr/clear_notifications
allow users to clear notifications
2021-09-29 16:05:55 +02:00
Thibault Duplessis d045067e0a tournament controller refactor - after #9878 2021-09-29 09:03:07 +02:00
Thibault Duplessis f97fa4fbe6
Merge pull request #9878 from nnickoloff1234/tournament-home-html-vs-api-mobile
Mobile app to show team tournaments
2021-09-29 08:59:25 +02:00
Thibault Duplessis 82a6c13bf9 show post with incremented views 2021-09-28 14:06:45 +02:00
Ragul Balaji Ravichandran 15b4ce99c7 allow users to clear notifications 2021-09-26 20:40:54 +05:30
kraktus 0eda25ce08 Create a zulip note whenever a mod sends to Zulip
close https://github.com/lichess-org/tavern/issues/136
2021-09-25 14:33:23 +02:00
kraktus e816570437 Bots cannot like ublogs.
For now they can still post blogs, which could be useful to post articles (like maia) on their specifities and/or development.
2021-09-25 11:20:03 +02:00
nickolay b89fa9a6e0 tourn home same set of tourneys in api and html mode 2021-09-24 22:12:11 +03:00
Thibault Duplessis 7983f75234 fix challenge accept API endpoint when challenge was canceled 2021-09-23 22:35:44 +02:00
Thibault Duplessis 913fa06d86 show swiss chats instead of self-moderated simul chats in mod view 2021-09-23 17:20:07 +02:00
Thibault Duplessis f467bac4ab add broadcast PGN endpoints 2021-09-23 10:48:01 +02:00
Thibault Duplessis 63c22ae53c remove superfluous monitoring endpoints 2021-09-23 10:47:44 +02:00
Thibault Duplessis 9aef32ee88 broadcast streaming API 2021-09-23 10:18:10 +02:00
Thibault Duplessis d701b25b01 refactor AnonOrScoped 2021-09-23 08:50:55 +02:00
Thibault Duplessis 95fff08b50 optimize tournament endpoints 2021-09-21 21:21:01 +02:00
Thibault Duplessis 5ee55e1327 add ?withCurrentGames=1 flag to /api/stream/games-by-users endpoint 2021-09-21 10:03:10 +02:00
Thibault Duplessis 293e8f9f95 paginator page must > 0 2021-09-20 23:28:43 +02:00
Thibault Duplessis 31ba5d3a08 type safety: use Status rather than Int - for #9850
also filters out exotic status numbers
2021-09-20 18:58:00 +02:00
Thibault Duplessis ab0c01e2a1 Merge branch 'api-filter-user-tournaments-by-status' of git://github.com/nnickoloff1234/lila into nnickoloff1234-api-filter-user-tournaments-by-status
* 'api-filter-user-tournaments-by-status' of git://github.com/nnickoloff1234/lila:
  Update TournamentRepo.scala
  add status filter parameter to users created tournaments api
2021-09-20 18:38:32 +02:00
Thibault Duplessis ced5e57c93 don't always publish user.online to discourage API misuse
Use this instead: https://lichess.org/api#operation/apiUsersStatus
2021-09-20 17:54:43 +02:00
Thibault Duplessis be678f9a41 serve up to 100 users in real-time status endpoint 2021-09-20 17:53:32 +02:00
nickolay 172ad1c02c add status filter parameter to users created tournaments api 2021-09-20 18:35:30 +03:00
Thibault Duplessis 1a92c93554 remove followers streaming API which no-one uses
according to monitoring
2021-09-20 16:24:08 +02:00
Thibault Duplessis 5b5a712f40 mod following view 2021-09-20 16:09:33 +02:00
Thibault Duplessis 6c2c88de22 different results for mobile app 2021-09-20 12:21:47 +02:00
Thibault Duplessis 4952befc73 remove followers count from /account/info
which the app smashes 90 times per second
2021-09-20 09:14:45 +02:00
Thibault Duplessis 1333baf320 show full list of friends 2021-09-19 22:19:58 +02:00
Thibault Duplessis d76b50e3d1 no longer store empty crosstables 2021-09-19 10:57:44 +02:00
Thibault Duplessis 18b8fedcb1 validate prismic IDs 2021-09-18 15:22:59 +02:00
Thibault Duplessis 37c8afe5c1 tweak ublog paginator max pages 2021-09-18 13:09:37 +02:00
Thibault Duplessis c3e5b3c899 add auth user language in pref get API 2021-09-18 09:20:03 +02:00
Thibault Duplessis 7d541ea9e4 always read same amount of activity days 2021-09-17 10:45:33 +02:00
Thibault Duplessis 6526071402 recompute all ublog ranks on factor change 2021-09-16 21:53:23 +02:00
Thibault Duplessis 2f9ce9e8b7 configurable ublog rank factor 2021-09-16 21:39:05 +02:00
Thibault Duplessis 74c251fe7e better decline PGNs with ambiguous moves
chess.com still produces PGN with ambiguous moves, that can't be read:

[Site "Chess.com"]
[Date "2021.09.15"]
[Round "?"]
[White "Heiko_Schmitz"]
[Black "Vostoro"]
[Result "0-1"]
[ECO "B06"]
[WhiteElo "1117"]
[BlackElo "812"]
[TimeControl "180+2"]
[EndTime "10:43:14 PDT"]
[Termination "Vostoro won by resignation"]

1. e4 g6 2. d4 Bg7 3. c3 d6 4. f4 a6 5. e5 dxe5 6. fxe5 b5 7. Na3 Bb7 8. Nf3 Nd7
9. Ng5 h6 10. Nf3 f6 11. Qe2 Nb6 12. g4 Nc4 13. Bg2 Nxa3 14. bxa3 Bxf3 15. Bxf3
Rc8 16. Bb7 Rb8 17. Bxa6 Qd5 18. c4 bxc4 19. Kd2 Qxh1 20. Qxc4 Qxh2+ 21. Kd3
fxe5 22. Bb5+ Kf8 23. Rb1 exd4 24. Bb2 Nf6 25. Bxd4 c6 26. Qxc6 Nxg4 27. Qxg6
Bxd4 28. Kxd4 Rg8 29. Qf5+ Nf6 30. Re1 Qd2+ 31. Bd3 Qxe1 32. Qc5 Qf2+ 33. Kc4
Qxc5+ 34. Kxc5 Rb2 35. Bc4 Ne4+ 36. Kd4 Nd2 37. Bxg8 Kxg8 38. Kc3 Rxa2 39. Kb4
h5 40. a4 h4 41. a5 Rxa5 42. Kxa5 h3 43. Kb6 h2 44. Kc7 h1=Q 45. Kd7 Qd5+ 46.
Ke8 Qe4 47. Kd7 Qd3+ 48. Ke8 e5 49. Ke7 e4 50. Ke6 e3 51. Kf6 e2 52. Kg5 e1=$146
53. Kg4 Kf8 54. Kf4 Ke8 55. Kg4 Qe3 56. Kf5 Nc2 57. Kg6 Qf4 58. Kh5 Qg3 59. Kh6
Qg4 60. Kh7 Qg5 61. Kh8 Kf7 0-1

55... Qe3 is ambiguous, both black queens go to e3.
2021-09-16 08:57:43 +02:00
Thibault Duplessis 12e7dc63a8 Revert "simplify tournament update code"
This reverts commit 0071ef7497.
2021-09-15 19:08:28 +02:00
Thibault Duplessis 0071ef7497 simplify tournament update code 2021-09-15 19:02:51 +02:00
Thibault Duplessis f628d3c496 add games to broadcast round API - closes #9809 2021-09-15 18:02:34 +02:00
Thibault Duplessis 0cb1f90f3d
Merge pull request #9792 from kraktus/anon_blog
Fix `blog/friends` page for anon
2021-09-14 08:06:35 +02:00
Thibault Duplessis d6be3c2583 ublog post like timeline notification 2021-09-13 21:27:19 +02:00
kraktus 409207dd79 Fix blog/friends page for anon
close https://github.com/ornicar/lila/issues/9788
2021-09-13 14:27:42 +02:00
Thibault Duplessis dd63acdfb6 improve logging of blog mod actions 2021-09-13 09:29:14 +02:00
Niklas Fiekas bcd8f2f323 future proof fishnet nodes, remove fishnet 1.x bc 2021-09-13 02:12:47 +02:00