Reactions per category: all, only some types, or off

01d6190 · gmorell · 2026-12-03 03:24

65 files +1030 -1676
Message
{commit_body(@commit)}

Files changed

modified README.md
+10 −1
@@ -36,7 +36,7 @@ Sign in with the printed password. Further members join through invites
36 36 the password `recourse-demo`**, and topics spread over the last six weeks
37 37 with replies, an edited post, a soft-deleted post, reactions, bookmarks,
38 38 tags and a pinned announcement; and moderation in use: staff-only
39 − Announcements, a read-only "Leaders' Council" (Basic reads, Regulars post),
39 + Announcements with reactions off, a read-only "Leaders' Council" (Basic reads, Regulars post),
40 40 a locked topic with a staff-moderated post whose original is hidden, a
41 41 pending flag, and their moderation-log lines.
42 42
@@ -76,6 +76,15 @@ Classic and Focus:
76 76 (staff start topics, members reply) and read-only windows (TL1 reads, TL3
77 77 posts). A new subcategory starts with its parent's rules; nothing is
78 78 inherited after that.
79 +- **Reactions per category:** all reaction types (the default), only some,
80 + or none.
81 + - Off hides reaction buttons and counts on posts, tiles and strips there.
82 + The server refuses new reactions (`reactions_off`, or
83 + `reaction_not_offered` for a type outside the set).
84 + - The Reacted page and reaction notifications leave those categories out.
85 + - Existing reactions are kept and come back when turned on again.
86 + - A new subcategory starts with its parent's setting.
87 + - Changes are in the moderation log.
79 88 - **Flags:** members (`MIN_TRUST_TO_FLAG`, verified, not silenced) flag a
80 89 post once for spam / abusive / off topic / other.
81 90 - A post hides itself pending review when distinct flaggers ÷ readers ≥
modified android/app/src/main/java/org/neiam/recourse/app/data/Models.kt
+5 −0
@@ -48,6 +48,10 @@ data class Rule(
48 48 @SerialName("min_trust") val minTrust: Int? = null,
49 49 )
50 50
51 +/** `all`, `none` (off: posts here carry no reactions) or `some` of `keys`. */
52 +@Serializable
53 +data class CategoryReactions(val mode: String = "all", val keys: List<String> = emptyList())
54 +
51 55 @Serializable
52 56 data class Posting(
53 57 @SerialName("create_topic") val createTopic: Rule = Rule(),
@@ -114,6 +118,7 @@ data class CategoryItem(
114 118 val posting: Posting = Posting(),
115 119 @SerialName("can_create_topic") val canCreateTopic: Boolean = true,
116 120 @SerialName("can_reply") val canReply: Boolean = true,
121 + val reactions: CategoryReactions = CategoryReactions(),
117 122 ) {
118 123 fun ref() = CategoryRef(id, slug, name, colors)
119 124 }
modified android/app/src/test/java/org/neiam/recourse/app/data/ContractTest.kt
+4 −0
@@ -105,6 +105,10 @@ class ContractTest {
105 105 assertEquals("staff_only", ann.createBlocked?.code)
106 106 assertEquals("staff", ann.category.posting.createTopic.kind)
107 107 assertTrue(ann.category.canReply)
108 + assertEquals("none", ann.category.reactions.mode)
109 + val quiet = decode("topic_no_reactions", TopicPage.serializer())
110 + assertFalse(quiet.canReact)
111 + assertTrue(quiet.posts.all { it.reactions.isEmpty() && !it.canReact })
108 112
109 113 assertTrue(decode("flag", FlagResponse.serializer()).flagged)
110 114 val me = decode("me_silenced", MeResponse.serializer()).user
modified android/app/src/test/resources/api/bookmarks.json
+3 −3
@@ -2,11 +2,11 @@
2 2 "bookmarks": [
3 3 {
4 4 "cooked": "<p>Opening post body.</p>\n",
5 − "created_at": "2026-12-03T03:10:07.036833Z",
5 + "created_at": "2026-12-03T03:23:57.383152Z",
6 6 "deleted": false,
7 − "post_id": "01a239e1-766f-713a-8f25-620f245368a2",
7 + "post_id": "01a239ee-21f1-70df-9576-a24405ba575b",
8 8 "post_number": 1,
9 − "topic_id": "01a239e1-7668-70ff-8133-42bba9800ddb",
9 + "topic_id": "01a239ee-21eb-71f5-9008-81bfeee5bb1b",
10 10 "topic_title": "Welcome to the forum"
11 11 }
12 12 ]
modified android/app/src/test/resources/api/categories.json
+235 −1345
@@ -8,7 +8,7 @@
8 8 ],
9 9 "depth": 1,
10 10 "description": null,
11 − "id": "01a239db-86e6-75e3-aaed-d1be41367c8c",
11 + "id": "01a239ed-f4ab-775a-8f8f-660c65173ddb",
12 12 "name": "Announcements",
13 13 "parent_id": null,
14 14 "posting": {
@@ -21,1100 +21,24 @@
21 21 "min_trust": null
22 22 }
23 23 },
24 − "slug": "announcements-d1bdb76d5caa",
25 − "topic_count": 0,
26 − "watching": false
27 − },
28 − {
29 − "can_create_topic": true,
30 − "can_reply": true,
31 − "colors": [
32 − "#E45735"
33 − ],
34 − "depth": 1,
35 − "description": "Official announcements and news.",
36 − "id": "c3012a02-82da-4999-b55d-7e6ed4ed7138",
37 − "name": "Announcements",
38 − "parent_id": null,
39 − "posting": {
40 − "create_topic": {
41 − "kind": "everyone",
42 − "min_trust": null
43 − },
44 − "reply": {
45 − "kind": "everyone",
46 − "min_trust": null
47 − }
48 − },
49 − "slug": "announcements",
50 − "topic_count": 0,
51 − "watching": false
52 − },
53 − {
54 − "can_create_topic": true,
55 − "can_reply": true,
56 − "colors": [
57 − "#7c3aed"
58 − ],
59 − "depth": 1,
60 − "description": null,
61 − "id": "01a239d1-9f31-7347-86d1-072a2055033b",
62 − "name": "cat-0729cdd5cd44",
63 − "parent_id": null,
64 − "posting": {
65 − "create_topic": {
66 − "kind": "everyone",
67 − "min_trust": null
68 − },
69 − "reply": {
70 − "kind": "everyone",
71 − "min_trust": null
72 − }
73 − },
74 − "slug": "cat-0729cdd5cd44",
75 − "topic_count": 3,
76 − "watching": false
77 − },
78 − {
79 − "can_create_topic": false,
80 − "can_reply": true,
81 − "colors": [
82 − "#7c3aed"
83 − ],
84 − "depth": 1,
85 − "description": null,
86 − "id": "01a239d4-50b5-74bd-8781-078c182625eb",
87 − "name": "cat-078b00a2a7d2",
88 − "parent_id": null,
89 − "posting": {
90 − "create_topic": {
91 − "kind": "staff",
92 − "min_trust": null
93 − },
94 − "reply": {
95 − "kind": "everyone",
96 − "min_trust": null
97 − }
98 − },
99 − "slug": "cat-078b00a2a7d2",
100 − "topic_count": 1,
101 − "watching": false
102 − },
103 − {
104 − "can_create_topic": true,
105 − "can_reply": true,
106 − "colors": [
107 − "#7c3aed"
108 − ],
109 − "depth": 1,
110 − "description": null,
111 − "id": "01a239d9-65ac-71fa-a187-103a338fd8bd",
112 − "name": "cat-1038c16711a3",
113 − "parent_id": null,
114 − "posting": {
115 − "create_topic": {
116 − "kind": "everyone",
117 − "min_trust": null
118 − },
119 − "reply": {
120 − "kind": "everyone",
121 − "min_trust": null
122 − }
123 − },
124 − "slug": "cat-1038c16711a3",
125 − "topic_count": 1,
126 − "watching": false
127 − },
128 − {
129 − "can_create_topic": true,
130 − "can_reply": true,
131 − "colors": [
132 − "#7c3aed"
133 − ],
134 − "depth": 1,
135 − "description": null,
136 − "id": "01a239d4-506a-74cc-a1d0-15d03136ef8d",
137 − "name": "cat-15cf0bf87b4c",
138 − "parent_id": null,
139 − "posting": {
140 − "create_topic": {
141 − "kind": "everyone",
142 − "min_trust": null
143 − },
144 − "reply": {
145 − "kind": "everyone",
146 − "min_trust": null
147 − }
148 − },
149 − "slug": "cat-15cf0bf87b4c",
150 − "topic_count": 1,
151 − "watching": false
152 − },
153 − {
154 − "can_create_topic": false,
155 − "can_reply": true,
156 − "colors": [
157 − "#7c3aed"
158 − ],
159 − "depth": 1,
160 − "description": null,
161 − "id": "01a239d9-63c1-7248-880b-1ac91c280a26",
162 − "name": "cat-1ac79d9054fe",
163 − "parent_id": null,
164 − "posting": {
165 − "create_topic": {
166 − "kind": "min_trust",
167 − "min_trust": 3
168 − },
169 − "reply": {
170 − "kind": "everyone",
171 − "min_trust": null
172 − }
173 − },
174 − "slug": "cat-1ac79d9054fe",
175 − "topic_count": 0,
176 − "watching": false
177 − },
178 − {
179 − "can_create_topic": false,
180 − "can_reply": false,
181 − "colors": [
182 − "#7c3aed",
183 − "#0088CC"
184 − ],
185 − "depth": 2,
186 − "description": null,
187 − "id": "01a239d9-63da-7482-a484-c9637f3e170d",
188 − "name": "Sub f9af061a0d85",
189 − "parent_id": "01a239d9-63c1-7248-880b-1ac91c280a26",
190 − "posting": {
191 − "create_topic": {
192 − "kind": "staff",
193 − "min_trust": null
194 − },
195 − "reply": {
196 − "kind": "min_trust",
197 − "min_trust": 2
198 − }
199 − },
200 − "slug": "sub-f9af061a0d85",
201 − "topic_count": 0,
202 − "watching": false
203 − },
204 − {
205 − "can_create_topic": true,
206 − "can_reply": true,
207 − "colors": [
208 − "#7c3aed"
209 − ],
210 − "depth": 1,
211 − "description": null,
212 − "id": "01a239d9-67d1-7770-9258-1b2eb2dd6987",
213 − "name": "cat-1b2d07fe81d2",
214 − "parent_id": null,
215 − "posting": {
216 − "create_topic": {
217 − "kind": "everyone",
218 − "min_trust": null
219 − },
220 − "reply": {
221 − "kind": "everyone",
222 − "min_trust": null
223 − }
224 − },
225 − "slug": "cat-1b2d07fe81d2",
226 − "topic_count": 1,
227 − "watching": false
228 − },
229 − {
230 − "can_create_topic": false,
231 − "can_reply": false,
232 − "colors": [
233 − "#7c3aed"
234 − ],
235 − "depth": 1,
236 − "description": null,
237 − "id": "01a239d4-5146-7238-a886-1cecd33bea30",
238 − "name": "cat-1cebcb7d06e0",
239 − "parent_id": null,
240 − "posting": {
241 − "create_topic": {
242 − "kind": "min_trust",
243 − "min_trust": 3
244 − },
245 − "reply": {
246 − "kind": "min_trust",
247 − "min_trust": 3
248 − }
249 − },
250 − "slug": "cat-1cebcb7d06e0",
251 − "topic_count": 1,
252 − "watching": false
253 − },
254 − {
255 − "can_create_topic": false,
256 − "can_reply": false,
257 − "colors": [
258 − "#7c3aed"
259 − ],
260 − "depth": 1,
261 − "description": null,
262 − "id": "01a239d9-1abb-736c-aae9-29c32baf7420",
263 − "name": "cat-29c2b49429da",
264 − "parent_id": null,
265 − "posting": {
266 − "create_topic": {
267 − "kind": "min_trust",
268 − "min_trust": 3
269 − },
270 − "reply": {
271 − "kind": "min_trust",
272 − "min_trust": 3
273 − }
274 − },
275 − "slug": "cat-29c2b49429da",
276 − "topic_count": 1,
277 − "watching": false
278 − },
279 − {
280 − "can_create_topic": false,
281 − "can_reply": true,
282 − "colors": [
283 − "#7c3aed"
284 − ],
285 − "depth": 1,
286 − "description": null,
287 − "id": "01a239d1-a1de-77c3-8f80-2eae7bb13630",
288 − "name": "cat-2ead3bb1749a",
289 − "parent_id": null,
290 − "posting": {
291 − "create_topic": {
292 − "kind": "staff",
293 − "min_trust": null
294 − },
295 − "reply": {
296 − "kind": "everyone",
297 − "min_trust": null
298 − }
299 − },
300 − "slug": "cat-2ead3bb1749a",
301 − "topic_count": 1,
302 − "watching": false
303 − },
304 − {
305 − "can_create_topic": true,
306 − "can_reply": true,
307 − "colors": [
308 − "#7c3aed"
309 − ],
310 − "depth": 1,
311 − "description": null,
312 − "id": "01a239d9-6755-7289-a584-2fa63bb11eb4",
313 − "name": "cat-2fa55df129bf",
314 − "parent_id": null,
315 − "posting": {
316 − "create_topic": {
317 − "kind": "everyone",
318 − "min_trust": null
319 − },
320 − "reply": {
321 − "kind": "everyone",
322 − "min_trust": null
323 − }
324 − },
325 − "slug": "cat-2fa55df129bf",
326 − "topic_count": 1,
327 − "watching": false
328 − },
329 − {
330 − "can_create_topic": false,
331 − "can_reply": false,
332 − "colors": [
333 − "#7c3aed"
334 − ],
335 − "depth": 1,
336 − "description": null,
337 − "id": "01a239d0-20b3-7144-b4d2-2fc5f7a9c15d",
338 − "name": "cat-2fc4d1cd9983",
339 − "parent_id": null,
340 − "posting": {
341 − "create_topic": {
342 − "kind": "min_trust",
343 − "min_trust": 3
344 − },
345 − "reply": {
346 − "kind": "min_trust",
347 − "min_trust": 3
348 − }
349 − },
350 − "slug": "cat-2fc4d1cd9983",
351 − "topic_count": 1,
352 − "watching": false
353 − },
354 − {
355 − "can_create_topic": true,
356 − "can_reply": true,
357 − "colors": [
358 − "#7c3aed"
359 − ],
360 − "depth": 1,
361 − "description": null,
362 − "id": "01a239d0-1df4-75b2-9722-3028a7344a59",
363 − "name": "cat-3027f821fd75",
364 − "parent_id": null,
365 − "posting": {
366 − "create_topic": {
367 − "kind": "everyone",
368 − "min_trust": null
369 − },
370 − "reply": {
371 − "kind": "everyone",
372 − "min_trust": null
373 − }
374 − },
375 − "slug": "cat-3027f821fd75",
376 − "topic_count": 1,
377 − "watching": false
378 − },
379 − {
380 − "can_create_topic": true,
381 − "can_reply": true,
382 − "colors": [
383 − "#7c3aed"
384 − ],
385 − "depth": 1,
386 − "description": null,
387 − "id": "01a239d9-100c-7627-a695-30a703bb3b91",
388 − "name": "cat-30a6c622c5f1",
389 − "parent_id": null,
390 − "posting": {
391 − "create_topic": {
392 − "kind": "everyone",
393 − "min_trust": null
394 − },
395 − "reply": {
396 − "kind": "everyone",
397 − "min_trust": null
398 − }
399 − },
400 − "slug": "cat-30a6c622c5f1",
401 − "topic_count": 1,
402 − "watching": false
403 − },
404 − {
405 − "can_create_topic": false,
406 − "can_reply": false,
407 − "colors": [
408 − "#7c3aed"
409 − ],
410 − "depth": 1,
411 − "description": null,
412 − "id": "01a239d9-6a0c-75f3-ac20-3202b4ad18db",
413 − "name": "cat-3201bc147bd1",
414 − "parent_id": null,
415 − "posting": {
416 − "create_topic": {
417 − "kind": "min_trust",
418 − "min_trust": 3
419 − },
420 − "reply": {
421 − "kind": "min_trust",
422 − "min_trust": 3
423 − }
424 − },
425 − "slug": "cat-3201bc147bd1",
426 − "topic_count": 1,
427 − "watching": false
428 − },
429 − {
430 − "can_create_topic": true,
431 − "can_reply": true,
432 − "colors": [
433 − "#7c3aed"
434 − ],
435 − "depth": 1,
436 − "description": null,
437 − "id": "01a239d9-65bc-70c0-aac4-327eb2aed97b",
438 − "name": "cat-327df964472d",
439 − "parent_id": null,
440 − "posting": {
441 − "create_topic": {
442 − "kind": "everyone",
443 − "min_trust": null
444 − },
445 − "reply": {
446 − "kind": "everyone",
447 − "min_trust": null
448 − }
449 − },
450 − "slug": "cat-327df964472d",
451 − "topic_count": 1,
452 − "watching": false
453 − },
454 − {
455 − "can_create_topic": true,
456 − "can_reply": true,
457 − "colors": [
458 − "#7c3aed"
459 − ],
460 − "depth": 1,
461 − "description": null,
462 − "id": "01a239d0-1d61-754e-b0b0-39a1e42f9190",
463 − "name": "cat-39a07a0e979c",
464 − "parent_id": null,
465 − "posting": {
466 − "create_topic": {
467 − "kind": "everyone",
468 − "min_trust": null
469 − },
470 − "reply": {
471 − "kind": "everyone",
472 − "min_trust": null
473 − }
474 − },
475 − "slug": "cat-39a07a0e979c",
476 − "topic_count": 1,
477 − "watching": false
478 − },
479 − {
480 − "can_create_topic": false,
481 − "can_reply": true,
482 − "colors": [
483 − "#7c3aed"
484 − ],
485 − "depth": 1,
486 − "description": null,
487 − "id": "01a239cf-f147-740a-adca-3bd15b403815",
488 − "name": "cat-3bd04ca6669a",
489 − "parent_id": null,
490 − "posting": {
491 − "create_topic": {
492 − "kind": "min_trust",
493 − "min_trust": 3
494 − },
495 − "reply": {
496 − "kind": "everyone",
497 − "min_trust": null
498 − }
499 − },
500 − "slug": "cat-3bd04ca6669a",
501 − "topic_count": 0,
502 − "watching": false
503 − },
504 − {
505 − "can_create_topic": false,
506 − "can_reply": false,
507 − "colors": [
508 − "#7c3aed",
509 − "#0088CC"
510 − ],
511 − "depth": 2,
512 − "description": null,
513 − "id": "01a239cf-f15f-75de-936e-16374eb34c11",
514 − "name": "Sub 4733651a6bd6",
515 − "parent_id": "01a239cf-f147-740a-adca-3bd15b403815",
516 − "posting": {
517 − "create_topic": {
518 − "kind": "staff",
519 − "min_trust": null
520 − },
521 − "reply": {
522 − "kind": "min_trust",
523 − "min_trust": 2
524 − }
525 − },
526 − "slug": "sub-4733651a6bd6",
527 − "topic_count": 0,
528 − "watching": false
529 − },
530 − {
531 − "can_create_topic": false,
532 − "can_reply": true,
533 − "colors": [
534 − "#7c3aed"
535 − ],
536 − "depth": 1,
537 − "description": null,
538 − "id": "01a239d0-1bb7-731d-ba15-3c8908bb9f2c",
539 − "name": "cat-3c88753a42d2",
540 − "parent_id": null,
541 − "posting": {
542 − "create_topic": {
543 − "kind": "min_trust",
544 − "min_trust": 3
545 − },
546 − "reply": {
547 − "kind": "everyone",
548 − "min_trust": null
549 − }
550 − },
551 − "slug": "cat-3c88753a42d2",
552 − "topic_count": 0,
553 − "watching": false
554 − },
555 − {
556 − "can_create_topic": false,
557 − "can_reply": false,
558 − "colors": [
559 − "#7c3aed",
560 − "#0088CC"
561 − ],
562 − "depth": 2,
563 − "description": null,
564 − "id": "01a239d0-1bcf-7484-8b5f-820b931fab70",
565 − "name": "Sub 1de1fdfd66a7",
566 − "parent_id": "01a239d0-1bb7-731d-ba15-3c8908bb9f2c",
567 − "posting": {
568 − "create_topic": {
569 − "kind": "staff",
570 − "min_trust": null
571 − },
572 − "reply": {
573 − "kind": "min_trust",
574 − "min_trust": 2
575 − }
576 − },
577 − "slug": "sub-1de1fdfd66a7",
578 − "topic_count": 0,
579 − "watching": false
580 − },
581 − {
582 − "can_create_topic": true,
583 − "can_reply": true,
584 − "colors": [
585 − "#7c3aed"
586 − ],
587 − "depth": 1,
588 − "description": null,
589 − "id": "01a239d4-4dfe-74f3-9af8-42cbd0b21a79",
590 − "name": "cat-42ca6ec01eb5",
591 − "parent_id": null,
592 − "posting": {
593 − "create_topic": {
594 − "kind": "everyone",
595 − "min_trust": null
596 − },
597 − "reply": {
598 − "kind": "everyone",
599 − "min_trust": null
600 − }
601 − },
602 − "slug": "cat-42ca6ec01eb5",
603 − "topic_count": 1,
604 − "watching": false
605 − },
606 − {
607 − "can_create_topic": true,
608 − "can_reply": true,
609 − "colors": [
610 − "#7c3aed"
611 − ],
612 − "depth": 1,
613 − "description": null,
614 − "id": "01a239d9-65c2-7167-8890-441db798a59c",
615 − "name": "cat-441c2b5ba844",
616 − "parent_id": null,
617 − "posting": {
618 − "create_topic": {
619 − "kind": "everyone",
620 − "min_trust": null
621 − },
622 − "reply": {
623 − "kind": "everyone",
624 − "min_trust": null
625 − }
626 − },
627 − "slug": "cat-441c2b5ba844",
628 − "topic_count": 3,
629 − "watching": false
630 − },
631 − {
632 − "can_create_topic": true,
633 − "can_reply": true,
634 − "colors": [
635 − "#7c3aed"
636 − ],
637 − "depth": 1,
638 − "description": null,
639 − "id": "01a239d0-1db4-762d-9aba-4734da4282e3",
640 − "name": "cat-4733841be6a8",
641 − "parent_id": null,
642 − "posting": {
643 − "create_topic": {
644 − "kind": "everyone",
645 − "min_trust": null
646 − },
647 − "reply": {
648 − "kind": "everyone",
649 − "min_trust": null
650 − }
651 − },
652 − "slug": "cat-4733841be6a8",
653 − "topic_count": 3,
654 − "watching": false
655 − },
656 − {
657 − "can_create_topic": true,
658 − "can_reply": true,
659 − "colors": [
660 − "#7c3aed"
661 − ],
662 − "depth": 1,
663 − "description": null,
664 − "id": "01a239d9-6909-70db-89ed-4d170104e555",
665 − "name": "cat-4d16bae57d88",
666 − "parent_id": null,
667 − "posting": {
668 − "create_topic": {
669 − "kind": "everyone",
670 − "min_trust": null
671 − },
672 − "reply": {
673 − "kind": "everyone",
674 − "min_trust": null
675 − }
676 − },
677 − "slug": "cat-4d16bae57d88",
678 − "topic_count": 1,
679 − "watching": false
680 − },
681 − {
682 − "can_create_topic": true,
683 − "can_reply": true,
684 − "colors": [
685 − "#7c3aed"
686 − ],
687 − "depth": 1,
688 − "description": null,
689 − "id": "01a239cf-f320-73bf-b279-4e2f1448eecb",
690 − "name": "cat-4e2ecdb7bdc4",
691 − "parent_id": null,
692 − "posting": {
693 − "create_topic": {
694 − "kind": "everyone",
695 − "min_trust": null
696 − },
697 − "reply": {
698 − "kind": "everyone",
699 − "min_trust": null
700 − }
701 − },
702 − "slug": "cat-4e2ecdb7bdc4",
703 − "topic_count": 1,
704 − "watching": false
705 − },
706 − {
707 − "can_create_topic": true,
708 − "can_reply": true,
709 − "colors": [
710 − "#7c3aed"
711 − ],
712 − "depth": 1,
713 − "description": null,
714 − "id": "01a239d9-1138-76ad-96b9-55936e5c10a5",
715 − "name": "cat-5592cc8738e2",
716 − "parent_id": null,
717 − "posting": {
718 − "create_topic": {
719 − "kind": "everyone",
720 − "min_trust": null
721 − },
722 − "reply": {
723 − "kind": "everyone",
724 − "min_trust": null
725 − }
726 − },
727 − "slug": "cat-5592cc8738e2",
728 − "topic_count": 1,
729 − "watching": false
730 − },
731 − {
732 − "can_create_topic": true,
733 − "can_reply": true,
734 − "colors": [
735 − "#7c3aed"
736 − ],
737 − "depth": 1,
738 − "description": null,
739 − "id": "01a239d4-4d71-73ac-98c9-6decccd21bf7",
740 − "name": "cat-6deb241f55b2",
741 − "parent_id": null,
742 − "posting": {
743 − "create_topic": {
744 − "kind": "everyone",
745 − "min_trust": null
746 − },
747 − "reply": {
748 − "kind": "everyone",
749 − "min_trust": null
750 − }
751 − },
752 − "slug": "cat-6deb241f55b2",
753 − "topic_count": 3,
754 − "watching": false
755 − },
756 − {
757 − "can_create_topic": true,
758 − "can_reply": true,
759 − "colors": [
760 − "#7c3aed"
761 − ],
762 − "depth": 1,
763 − "description": null,
764 − "id": "01a239d0-1cc7-72c1-ac36-7ef81937bb64",
765 − "name": "cat-7ef713abaf45",
766 − "parent_id": null,
767 − "posting": {
768 − "create_topic": {
769 − "kind": "everyone",
770 − "min_trust": null
771 − },
772 − "reply": {
773 − "kind": "everyone",
774 − "min_trust": null
775 − }
776 − },
777 − "slug": "cat-7ef713abaf45",
778 − "topic_count": 1,
779 − "watching": false
780 − },
781 − {
782 − "can_create_topic": true,
783 − "can_reply": true,
784 − "colors": [
785 − "#7c3aed"
786 − ],
787 − "depth": 1,
788 − "description": null,
789 − "id": "01a239cf-f4c9-75b4-9d2e-8caf198aa114",
790 − "name": "cat-8caeb2f449a8",
791 − "parent_id": null,
792 − "posting": {
793 − "create_topic": {
794 − "kind": "everyone",
795 − "min_trust": null
796 − },
797 − "reply": {
798 − "kind": "everyone",
799 − "min_trust": null
800 − }
801 − },
802 − "slug": "cat-8caeb2f449a8",
803 − "topic_count": 1,
804 − "watching": false
805 − },
806 − {
807 − "can_create_topic": true,
808 − "can_reply": true,
809 − "colors": [
810 − "#7c3aed"
811 − ],
812 − "depth": 1,
813 − "description": null,
814 − "id": "01a239d9-1031-77b4-879f-8dd5e3d1919f",
815 − "name": "cat-8dd46c286ad1",
816 − "parent_id": null,
817 − "posting": {
818 − "create_topic": {
819 − "kind": "everyone",
820 − "min_trust": null
821 − },
822 − "reply": {
823 − "kind": "everyone",
824 − "min_trust": null
825 − }
826 − },
827 − "slug": "cat-8dd46c286ad1",
828 − "topic_count": 1,
829 − "watching": false
830 − },
831 − {
832 − "can_create_topic": false,
833 − "can_reply": true,
834 − "colors": [
835 − "#7c3aed"
836 − ],
837 − "depth": 1,
838 − "description": null,
839 − "id": "01a239d0-2019-759d-a822-907fbc33ff52",
840 − "name": "cat-907e844cdff3",
841 − "parent_id": null,
842 − "posting": {
843 − "create_topic": {
844 − "kind": "staff",
845 − "min_trust": null
846 − },
847 − "reply": {
848 − "kind": "everyone",
849 − "min_trust": null
850 − }
851 − },
852 − "slug": "cat-907e844cdff3",
853 − "topic_count": 1,
854 − "watching": false
855 − },
856 − {
857 − "can_create_topic": false,
858 − "can_reply": true,
859 − "colors": [
860 − "#7c3aed"
861 − ],
862 − "depth": 1,
863 − "description": null,
864 − "id": "01a239d9-6942-70dc-bca2-948200bfaf7c",
865 − "name": "cat-9481f8c5bd9f",
866 − "parent_id": null,
867 − "posting": {
868 − "create_topic": {
869 − "kind": "staff",
870 − "min_trust": null
871 − },
872 − "reply": {
873 − "kind": "everyone",
874 − "min_trust": null
875 − }
876 − },
877 − "slug": "cat-9481f8c5bd9f",
878 − "topic_count": 1,
879 − "watching": false
880 − },
881 − {
882 − "can_create_topic": false,
883 − "can_reply": true,
884 − "colors": [
885 − "#7c3aed"
886 − ],
887 − "depth": 1,
888 − "description": null,
889 − "id": "01a239d1-9cd6-74cc-b528-9604653bf974",
890 − "name": "cat-96038c0e3dd0",
891 − "parent_id": null,
892 − "posting": {
893 − "create_topic": {
894 − "kind": "min_trust",
895 − "min_trust": 3
896 − },
897 − "reply": {
898 − "kind": "everyone",
899 − "min_trust": null
900 − }
901 − },
902 − "slug": "cat-96038c0e3dd0",
903 − "topic_count": 0,
904 − "watching": false
905 − },
906 − {
907 − "can_create_topic": false,
908 − "can_reply": false,
909 − "colors": [
910 − "#7c3aed",
911 − "#0088CC"
912 − ],
913 − "depth": 2,
914 − "description": null,
915 − "id": "01a239d1-9cf4-73c7-ae4d-249e13fa731c",
916 − "name": "Sub 0627c93885f1",
917 − "parent_id": "01a239d1-9cd6-74cc-b528-9604653bf974",
918 − "posting": {
919 − "create_topic": {
920 − "kind": "staff",
921 − "min_trust": null
922 − },
923 − "reply": {
924 − "kind": "min_trust",
925 − "min_trust": 2
926 − }
927 − },
928 − "slug": "sub-0627c93885f1",
929 − "topic_count": 0,
930 − "watching": false
931 − },
932 − {
933 − "can_create_topic": true,
934 − "can_reply": true,
935 − "colors": [
936 − "#7c3aed"
937 − ],
938 − "depth": 1,
939 − "description": null,
940 − "id": "01a239cf-f5f2-77bf-84ed-99a04add3681",
941 − "name": "cat-999f23e0e0ab",
942 − "parent_id": null,
943 − "posting": {
944 − "create_topic": {
945 − "kind": "everyone",
946 − "min_trust": null
947 − },
948 − "reply": {
949 − "kind": "everyone",
950 − "min_trust": null
951 − }
952 − },
953 − "slug": "cat-999f23e0e0ab",
954 − "topic_count": 1,
955 − "watching": false
956 − },
957 − {
958 − "can_create_topic": true,
959 − "can_reply": true,
960 − "colors": [
961 − "#7c3aed"
962 − ],
963 − "depth": 1,
964 − "description": null,
965 − "id": "01a239e1-5b5a-72b9-92e7-a3bf4ea08793",
966 − "name": "cat-a3bed3c3e5ae",
967 − "parent_id": null,
968 − "posting": {
969 − "create_topic": {
970 − "kind": "everyone",
971 − "min_trust": null
972 − },
973 − "reply": {
974 − "kind": "everyone",
975 − "min_trust": null
976 − }
977 − },
978 − "slug": "cat-a3bed3c3e5ae",
979 − "topic_count": 1,
980 − "watching": false
981 − },
982 − {
983 − "can_create_topic": false,
984 − "can_reply": true,
985 − "colors": [
986 − "#7c3aed"
987 − ],
988 − "depth": 1,
989 − "description": null,
990 − "id": "01a239d4-4c4b-71e5-b8f7-a447ec410107",
991 − "name": "cat-a446572a1660",
992 − "parent_id": null,
993 − "posting": {
994 − "create_topic": {
995 − "kind": "min_trust",
996 − "min_trust": 3
997 − },
998 − "reply": {
999 − "kind": "everyone",
1000 − "min_trust": null
1001 − }
1002 − },
1003 − "slug": "cat-a446572a1660",
1004 − "topic_count": 0,
1005 − "watching": false
1006 − },
1007 − {
1008 − "can_create_topic": false,
1009 − "can_reply": false,
1010 − "colors": [
1011 − "#7c3aed",
1012 − "#0088CC"
1013 − ],
1014 − "depth": 2,
1015 − "description": null,
1016 − "id": "01a239d4-4c62-76b0-ad88-01d7502967c4",
1017 − "name": "Sub 9a2d61c3556e",
1018 − "parent_id": "01a239d4-4c4b-71e5-b8f7-a447ec410107",
1019 − "posting": {
1020 − "create_topic": {
1021 − "kind": "staff",
1022 − "min_trust": null
1023 − },
1024 − "reply": {
1025 − "kind": "min_trust",
1026 − "min_trust": 2
1027 − }
1028 − },
1029 − "slug": "sub-9a2d61c3556e",
1030 − "topic_count": 0,
1031 − "watching": false
1032 − },
1033 − {
1034 − "can_create_topic": true,
1035 − "can_reply": true,
1036 − "colors": [
1037 − "#7c3aed"
1038 − ],
1039 − "depth": 1,
1040 − "description": null,
1041 − "id": "01a239d4-4ed6-7739-9e01-a56c003749d7",
1042 − "name": "cat-a56ba63e022c",
1043 − "parent_id": null,
1044 − "posting": {
1045 − "create_topic": {
1046 − "kind": "everyone",
1047 − "min_trust": null
1048 − },
1049 − "reply": {
1050 − "kind": "everyone",
1051 − "min_trust": null
1052 − }
1053 − },
1054 − "slug": "cat-a56ba63e022c",
1055 − "topic_count": 1,
1056 − "watching": false
1057 − },
1058 − {
1059 − "can_create_topic": true,
1060 − "can_reply": true,
1061 − "colors": [
1062 − "#7c3aed"
1063 − ],
1064 − "depth": 1,
1065 − "description": null,
1066 − "id": "01a239d4-4dc9-733e-8859-a678d0f93e26",
1067 − "name": "cat-a6773d4ac998",
1068 − "parent_id": null,
1069 − "posting": {
1070 − "create_topic": {
1071 − "kind": "everyone",
1072 − "min_trust": null
1073 − },
1074 − "reply": {
1075 − "kind": "everyone",
1076 − "min_trust": null
1077 − }
1078 − },
1079 − "slug": "cat-a6773d4ac998",
1080 − "topic_count": 1,
1081 − "watching": false
1082 − },
1083 − {
1084 − "can_create_topic": true,
1085 − "can_reply": true,
1086 − "colors": [
1087 − "#7c3aed"
1088 − ],
1089 − "depth": 1,
1090 − "description": null,
1091 − "id": "01a239cf-f367-7594-b93e-a91bffd667b6",
1092 − "name": "cat-a91a14918753",
1093 − "parent_id": null,
1094 − "posting": {
1095 − "create_topic": {
1096 − "kind": "everyone",
1097 − "min_trust": null
1098 − },
1099 − "reply": {
1100 − "kind": "everyone",
1101 − "min_trust": null
1102 − }
24 + "reactions": {
25 + "keys": [],
26 + "mode": "all"
1103 27 },
1104 − "slug": "cat-a91a14918753",
1105 − "topic_count": 3,
28 + "slug": "announcements-660bd7960130",
29 + "topic_count": 0,
1106 30 "watching": false
1107 31 },
1108 32 {
1109 33 "can_create_topic": true,
1110 34 "can_reply": true,
1111 35 "colors": [
1112 − "#7c3aed"
36 + "#E45735"
1113 37 ],
1114 38 "depth": 1,
1115 − "description": null,
1116 − "id": "01a239d1-9ef7-77ea-9133-b0c21a657c1f",
1117 − "name": "cat-b0c1b79cbf66",
39 + "description": "Official announcements and news.",
40 + "id": "2cc31163-e5a9-4e3c-ba85-3826b8a8b095",
41 + "name": "Announcements",
1118 42 "parent_id": null,
1119 43 "posting": {
1120 44 "create_topic": {
@@ -1126,33 +50,12 @@
1126 50 "min_trust": null
1127 51 }
1128 52 },
1129 − "slug": "cat-b0c1b79cbf66",
1130 − "topic_count": 1,
1131 − "watching": false
1132 − },
1133 − {
1134 − "can_create_topic": true,
1135 − "can_reply": true,
1136 − "colors": [
1137 − "#7c3aed"
1138 − ],
1139 − "depth": 1,
1140 − "description": null,
1141 − "id": "01a239d0-1fb8-779b-81e0-b960b7d030b3",
1142 − "name": "cat-b95f81666448",
1143 − "parent_id": null,
1144 − "posting": {
1145 − "create_topic": {
1146 − "kind": "everyone",
1147 − "min_trust": null
1148 − },
1149 − "reply": {
1150 − "kind": "everyone",
1151 − "min_trust": null
1152 − }
53 + "reactions": {
54 + "keys": [],
55 + "mode": "all"
1153 56 },
1154 − "slug": "cat-b95f81666448",
1155 − "topic_count": 1,
57 + "slug": "announcements",
58 + "topic_count": 0,
1156 59 "watching": false
1157 60 },
1158 61 {
@@ -1163,8 +66,8 @@
1163 66 ],
1164 67 "depth": 1,
1165 68 "description": null,
1166 − "id": "01a239d9-11fb-70d9-b953-b9705df9e57e",
1167 − "name": "cat-b96f4b3f876d",
69 + "id": "01a239ed-de83-7504-873c-a0cd7efd0ffc",
70 + "name": "Announcements",
1168 71 "parent_id": null,
1169 72 "posting": {
1170 73 "create_topic": {
@@ -1176,8 +79,12 @@
1176 79 "min_trust": null
1177 80 }
1178 81 },
1179 − "slug": "cat-b96f4b3f876d",
1180 − "topic_count": 1,
82 + "reactions": {
83 + "keys": [],
84 + "mode": "all"
85 + },
86 + "slug": "announcements-a0cc4e021e63",
87 + "topic_count": 0,
1181 88 "watching": false
1182 89 },
1183 90 {
@@ -1188,8 +95,8 @@
1188 95 ],
1189 96 "depth": 1,
1190 97 "description": null,
1191 − "id": "01a239cf-f3a7-7290-bbdb-bebd6c746fc8",
1192 − "name": "cat-bebc1fff24e4",
98 + "id": "01a239ed-e23e-709d-bbab-053b69240b6c",
99 + "name": "cat-053a57266004",
1193 100 "parent_id": null,
1194 101 "posting": {
1195 102 "create_topic": {
@@ -1201,7 +108,11 @@
1201 108 "min_trust": null
1202 109 }
1203 110 },
1204 − "slug": "cat-bebc1fff24e4",
111 + "reactions": {
112 + "keys": [],
113 + "mode": "all"
114 + },
115 + "slug": "cat-053a57266004",
1205 116 "topic_count": 1,
1206 117 "watching": false
1207 118 },
@@ -1213,8 +124,8 @@
1213 124 ],
1214 125 "depth": 1,
1215 126 "description": null,
1216 − "id": "01a239d1-a20b-7300-b190-cbb033006e67",
1217 − "name": "cat-cbafa03e3d62",
127 + "id": "01a239ed-e4d4-7405-90f2-0de5a4b05b65",
128 + "name": "cat-0de42716cb68",
1218 129 "parent_id": null,
1219 130 "posting": {
1220 131 "create_topic": {
@@ -1226,7 +137,11 @@
1226 137 "min_trust": null
1227 138 }
1228 139 },
1229 − "slug": "cat-cbafa03e3d62",
140 + "reactions": {
141 + "keys": [],
142 + "mode": "all"
143 + },
144 + "slug": "cat-0de42716cb68",
1230 145 "topic_count": 1,
1231 146 "watching": false
1232 147 },
@@ -1238,8 +153,8 @@
1238 153 ],
1239 154 "depth": 1,
1240 155 "description": null,
1241 − "id": "01a239d9-124c-72c9-a12e-ce0ef1d375ac",
1242 − "name": "cat-ce0dd1c96d82",
156 + "id": "01a239ed-e57c-7664-912a-2890d22305ca",
157 + "name": "cat-288f53108f6e",
1243 158 "parent_id": null,
1244 159 "posting": {
1245 160 "create_topic": {
@@ -1251,83 +166,41 @@
1251 166 "min_trust": null
1252 167 }
1253 168 },
1254 − "slug": "cat-ce0dd1c96d82",
1255 − "topic_count": 1,
1256 − "watching": false
1257 − },
1258 − {
1259 − "can_create_topic": false,
1260 − "can_reply": false,
1261 − "colors": [
1262 − "#7c3aed"
1263 − ],
1264 − "depth": 1,
1265 − "description": null,
1266 − "id": "01a239d1-a26f-7498-9b7b-ce2b31dcc44b",
1267 − "name": "cat-ce2a0516409a",
1268 − "parent_id": null,
1269 − "posting": {
1270 − "create_topic": {
1271 − "kind": "min_trust",
1272 − "min_trust": 3
1273 − },
1274 − "reply": {
1275 − "kind": "min_trust",
1276 − "min_trust": 3
1277 − }
169 + "reactions": {
170 + "keys": [],
171 + "mode": "none"
1278 172 },
1279 − "slug": "cat-ce2a0516409a",
173 + "slug": "cat-288f53108f6e",
1280 174 "topic_count": 1,
1281 175 "watching": false
1282 176 },
1283 177 {
1284 − "can_create_topic": false,
178 + "can_create_topic": true,
1285 179 "can_reply": true,
1286 − "colors": [
1287 − "#7c3aed"
1288 − ],
1289 − "depth": 1,
1290 − "description": null,
1291 − "id": "01a239d9-0d93-75bc-9f4a-d984f4a7bedf",
1292 − "name": "cat-d982a351f786",
1293 − "parent_id": null,
1294 − "posting": {
1295 − "create_topic": {
1296 − "kind": "min_trust",
1297 − "min_trust": 3
1298 − },
1299 − "reply": {
1300 − "kind": "everyone",
1301 − "min_trust": null
1302 − }
1303 − },
1304 − "slug": "cat-d982a351f786",
1305 − "topic_count": 0,
1306 − "watching": false
1307 − },
1308 − {
1309 − "can_create_topic": false,
1310 − "can_reply": false,
1311 180 "colors": [
1312 181 "#7c3aed",
1313 182 "#0088CC"
1314 183 ],
1315 184 "depth": 2,
1316 185 "description": null,
1317 − "id": "01a239d9-0da7-77b1-a353-7f0d39f27c28",
1318 − "name": "Sub e37668f1585b",
1319 − "parent_id": "01a239d9-0d93-75bc-9f4a-d984f4a7bedf",
186 + "id": "01a239ed-e7a0-71ce-815b-9ad3529d7477",
187 + "name": "Sub 17d04de6fb5c",
188 + "parent_id": "01a239ed-e57c-7664-912a-2890d22305ca",
1320 189 "posting": {
1321 190 "create_topic": {
1322 − "kind": "staff",
191 + "kind": "everyone",
1323 192 "min_trust": null
1324 193 },
1325 194 "reply": {
1326 − "kind": "min_trust",
1327 − "min_trust": 2
195 + "kind": "everyone",
196 + "min_trust": null
1328 197 }
1329 198 },
1330 − "slug": "sub-e37668f1585b",
199 + "reactions": {
200 + "keys": [],
201 + "mode": "none"
202 + },
203 + "slug": "sub-17d04de6fb5c",
1331 204 "topic_count": 0,
1332 205 "watching": false
1333 206 },
@@ -1335,13 +208,14 @@
1335 208 "can_create_topic": true,
1336 209 "can_reply": true,
1337 210 "colors": [
1338 − "#7c3aed"
211 + "#7c3aed",
212 + "#0088CC"
1339 213 ],
1340 − "depth": 1,
214 + "depth": 2,
1341 215 "description": null,
1342 − "id": "01a239d9-11c0-723f-91d2-e2c9a9f0bfef",
1343 − "name": "cat-e2c82de2b409",
1344 − "parent_id": null,
216 + "id": "01a239ed-e7c0-7252-827b-ab5196c63c9f",
217 + "name": "Sub 17d04de6fb5c2",
218 + "parent_id": "01a239ed-e57c-7664-912a-2890d22305ca",
1345 219 "posting": {
1346 220 "create_topic": {
1347 221 "kind": "everyone",
@@ -1352,8 +226,12 @@
1352 226 "min_trust": null
1353 227 }
1354 228 },
1355 − "slug": "cat-e2c82de2b409",
1356 − "topic_count": 1,
229 + "reactions": {
230 + "keys": [],
231 + "mode": "all"
232 + },
233 + "slug": "sub-17d04de6fb5c2",
234 + "topic_count": 0,
1357 235 "watching": false
1358 236 },
1359 237 {
@@ -1364,8 +242,8 @@
1364 242 ],
1365 243 "depth": 1,
1366 244 "description": null,
1367 − "id": "01a239cf-f712-7212-a30b-ea32652276b8",
1368 − "name": "cat-ea31d7382e72",
245 + "id": "01a239ed-e952-714a-8aea-502bbed92e55",
246 + "name": "cat-502acaeada32",
1369 247 "parent_id": null,
1370 248 "posting": {
1371 249 "create_topic": {
@@ -1377,32 +255,11 @@
1377 255 "min_trust": 3
1378 256 }
1379 257 },
1380 − "slug": "cat-ea31d7382e72",
1381 − "topic_count": 1,
1382 − "watching": false
1383 − },
1384 − {
1385 − "can_create_topic": true,
1386 − "can_reply": true,
1387 − "colors": [
1388 − "#7c3aed"
1389 − ],
1390 − "depth": 1,
1391 − "description": null,
1392 − "id": "01a239d9-3efa-74d2-9352-eaaf1fa9e0b0",
1393 − "name": "cat-eaaefd3112c6",
1394 − "parent_id": null,
1395 − "posting": {
1396 − "create_topic": {
1397 − "kind": "everyone",
1398 − "min_trust": null
1399 − },
1400 − "reply": {
1401 − "kind": "everyone",
1402 − "min_trust": null
1403 − }
258 + "reactions": {
259 + "keys": [],
260 + "mode": "all"
1404 261 },
1405 − "slug": "cat-eaaefd3112c6",
262 + "slug": "cat-502acaeada32",
1406 263 "topic_count": 1,
1407 264 "watching": false
1408 265 },
@@ -1414,8 +271,8 @@
1414 271 ],
1415 272 "depth": 1,
1416 273 "description": null,
1417 − "id": "01a239cf-f67b-70e1-9534-eaefe3968758",
1418 − "name": "cat-eaeee939fddb",
274 + "id": "01a239ed-e88a-74e0-9882-7267baa91466",
275 + "name": "cat-7266a38346b1",
1419 276 "parent_id": null,
1420 277 "posting": {
1421 278 "create_topic": {
@@ -1427,32 +284,11 @@
1427 284 "min_trust": null
1428 285 }
1429 286 },
1430 − "slug": "cat-eaeee939fddb",
1431 − "topic_count": 1,
1432 − "watching": false
1433 − },
1434 − {
1435 − "can_create_topic": true,
1436 − "can_reply": true,
1437 − "colors": [
1438 − "#7c3aed"
1439 − ],
1440 − "depth": 1,
1441 − "description": null,
1442 − "id": "01a239d1-9fcb-744c-8425-f31cfd6d4ef8",
1443 − "name": "cat-f31b4b68c823",
1444 − "parent_id": null,
1445 − "posting": {
1446 − "create_topic": {
1447 − "kind": "everyone",
1448 − "min_trust": null
1449 − },
1450 − "reply": {
1451 − "kind": "everyone",
1452 − "min_trust": null
1453 − }
287 + "reactions": {
288 + "keys": [],
289 + "mode": "all"
1454 290 },
1455 − "slug": "cat-f31b4b68c823",
291 + "slug": "cat-7266a38346b1",
1456 292 "topic_count": 1,
1457 293 "watching": false
1458 294 },
@@ -1464,8 +300,8 @@
1464 300 ],
1465 301 "depth": 1,
1466 302 "description": null,
1467 − "id": "01a239d9-0fd2-761d-b507-f34df75a823c",
1468 − "name": "cat-f34c0c2fe58e",
303 + "id": "01a239ed-e552-770e-87fe-80427d68a0ba",
304 + "name": "cat-80417bebb2cb",
1469 305 "parent_id": null,
1470 306 "posting": {
1471 307 "create_topic": {
@@ -1477,7 +313,11 @@
1477 313 "min_trust": null
1478 314 }
1479 315 },
1480 − "slug": "cat-f34c0c2fe58e",
316 + "reactions": {
317 + "keys": [],
318 + "mode": "all"
319 + },
320 + "slug": "cat-80417bebb2cb",
1481 321 "topic_count": 3,
1482 322 "watching": false
1483 323 },
@@ -1489,8 +329,8 @@
1489 329 ],
1490 330 "depth": 1,
1491 331 "description": null,
1492 − "id": "01a239d1-9e7b-76ef-b363-fac5f27469cd",
1493 − "name": "cat-fac4cdc40925",
332 + "id": "01a239ed-c3eb-7635-a85a-a05109f6a429",
333 + "name": "cat-a0502f441c51",
1494 334 "parent_id": null,
1495 335 "posting": {
1496 336 "create_topic": {
@@ -1502,7 +342,11 @@
1502 342 "min_trust": null
1503 343 }
1504 344 },
1505 − "slug": "cat-fac4cdc40925",
345 + "reactions": {
346 + "keys": [],
347 + "mode": "none"
348 + },
349 + "slug": "cat-a0502f441c51",
1506 350 "topic_count": 1,
1507 351 "watching": false
1508 352 },
@@ -1510,13 +354,14 @@
1510 354 "can_create_topic": true,
1511 355 "can_reply": true,
1512 356 "colors": [
1513 − "#7c3aed"
357 + "#7c3aed",
358 + "#0088CC"
1514 359 ],
1515 − "depth": 1,
360 + "depth": 2,
1516 361 "description": null,
1517 − "id": "01a239db-85ee-7106-b569-7bed0ec68217",
1518 − "name": "General",
1519 − "parent_id": null,
362 + "id": "01a239ed-c562-70c4-b36c-6466e62a1d68",
363 + "name": "Sub ddeabef57125",
364 + "parent_id": "01a239ed-c3eb-7635-a85a-a05109f6a429",
1520 365 "posting": {
1521 366 "create_topic": {
1522 367 "kind": "everyone",
@@ -1527,21 +372,26 @@
1527 372 "min_trust": null
1528 373 }
1529 374 },
1530 − "slug": "general-7bec1f31c1e3",
1531 − "topic_count": 3,
375 + "reactions": {
376 + "keys": [],
377 + "mode": "none"
378 + },
379 + "slug": "sub-ddeabef57125",
380 + "topic_count": 0,
1532 381 "watching": false
1533 382 },
1534 383 {
1535 384 "can_create_topic": true,
1536 385 "can_reply": true,
1537 386 "colors": [
1538 − "#7c3aed"
387 + "#7c3aed",
388 + "#0088CC"
1539 389 ],
1540 − "depth": 1,
390 + "depth": 2,
1541 391 "description": null,
1542 − "id": "01a239d9-60e1-719d-b029-f41556d9f47b",
1543 − "name": "General",
1544 − "parent_id": null,
392 + "id": "01a239ed-c576-7389-a9cf-522178f8303f",
393 + "name": "Sub ddeabef571252",
394 + "parent_id": "01a239ed-c3eb-7635-a85a-a05109f6a429",
1545 395 "posting": {
1546 396 "create_topic": {
1547 397 "kind": "everyone",
@@ -1552,8 +402,12 @@
1552 402 "min_trust": null
1553 403 }
1554 404 },
1555 − "slug": "general-f414899cfde9",
1556 − "topic_count": 2,
405 + "reactions": {
406 + "keys": [],
407 + "mode": "all"
408 + },
409 + "slug": "sub-ddeabef571252",
410 + "topic_count": 0,
1557 411 "watching": false
1558 412 },
1559 413 {
@@ -1564,8 +418,8 @@
1564 418 ],
1565 419 "depth": 1,
1566 420 "description": null,
1567 − "id": "01a239d0-184f-71d7-85f6-1100b5956986",
1568 − "name": "General",
421 + "id": "01a239ed-e3e2-7706-a52b-bf0923957662",
422 + "name": "cat-bf08fe212304",
1569 423 "parent_id": null,
1570 424 "posting": {
1571 425 "create_topic": {
@@ -1577,8 +431,12 @@
1577 431 "min_trust": null
1578 432 }
1579 433 },
1580 − "slug": "general-10ffc04de160",
1581 − "topic_count": 2,
434 + "reactions": {
435 + "keys": [],
436 + "mode": "all"
437 + },
438 + "slug": "cat-bf08fe212304",
439 + "topic_count": 1,
1582 440 "watching": false
1583 441 },
1584 442 {
@@ -1589,8 +447,8 @@
1589 447 ],
1590 448 "depth": 1,
1591 449 "description": null,
1592 − "id": "01a239d1-9a17-7798-9612-77f474c05795",
1593 − "name": "General",
450 + "id": "01a239ed-e286-7389-b436-d359fc17ff19",
451 + "name": "cat-d358ac65a58e",
1594 452 "parent_id": null,
1595 453 "posting": {
1596 454 "create_topic": {
@@ -1602,8 +460,12 @@
1602 460 "min_trust": null
1603 461 }
1604 462 },
1605 − "slug": "general-77f30dfb9d32",
1606 − "topic_count": 2,
463 + "reactions": {
464 + "keys": [],
465 + "mode": "all"
466 + },
467 + "slug": "cat-d358ac65a58e",
468 + "topic_count": 1,
1607 469 "watching": false
1608 470 },
1609 471 {
@@ -1614,8 +476,8 @@
1614 476 ],
1615 477 "depth": 1,
1616 478 "description": null,
1617 − "id": "01a239e1-765f-7746-ad93-92bd68871cfe",
1618 − "name": "General",
479 + "id": "01a239ed-e655-729d-b86b-d7e73c01a8b3",
480 + "name": "cat-d7e6c6829cc9",
1619 481 "parent_id": null,
1620 482 "posting": {
1621 483 "create_topic": {
@@ -1627,32 +489,11 @@
1627 489 "min_trust": null
1628 490 }
1629 491 },
1630 − "slug": "general-92bc92a197b5",
1631 − "topic_count": 2,
1632 − "watching": true
1633 − },
1634 − {
1635 − "can_create_topic": true,
1636 − "can_reply": true,
1637 − "colors": [
1638 − "#7c3aed"
1639 − ],
1640 − "depth": 1,
1641 − "description": null,
1642 − "id": "01a239d9-60e6-768b-91c4-a1b74d80757f",
1643 − "name": "Open",
1644 − "parent_id": null,
1645 − "posting": {
1646 − "create_topic": {
1647 − "kind": "everyone",
1648 − "min_trust": null
1649 − },
1650 − "reply": {
1651 − "kind": "everyone",
1652 − "min_trust": null
1653 − }
492 + "reactions": {
493 + "keys": [],
494 + "mode": "all"
1654 495 },
1655 − "slug": "open-a1b68013db33",
496 + "slug": "cat-d7e6c6829cc9",
1656 497 "topic_count": 1,
1657 498 "watching": false
1658 499 },
@@ -1664,8 +505,8 @@
1664 505 ],
1665 506 "depth": 1,
1666 507 "description": null,
1667 − "id": "01a239d1-9a12-734d-b403-794e2cf918d2",
1668 − "name": "Open",
508 + "id": "01a239ed-e89b-754b-9b49-da015d065119",
509 + "name": "cat-da002f337cb8",
1669 510 "parent_id": null,
1670 511 "posting": {
1671 512 "create_topic": {
@@ -1677,58 +518,71 @@
1677 518 "min_trust": null
1678 519 }
1679 520 },
1680 − "slug": "open-794dd6c09804",
521 + "reactions": {
522 + "keys": [],
523 + "mode": "all"
524 + },
525 + "slug": "cat-da002f337cb8",
1681 526 "topic_count": 1,
1682 527 "watching": false
1683 528 },
1684 529 {
1685 − "can_create_topic": true,
530 + "can_create_topic": false,
1686 531 "can_reply": true,
1687 532 "colors": [
1688 533 "#7c3aed"
1689 534 ],
1690 535 "depth": 1,
1691 536 "description": null,
1692 − "id": "01a239d1-9923-7092-ad0f-19825a07b8ec",
1693 − "name": "Open",
537 + "id": "01a239ed-e31b-7210-80bf-e18da3abb3e6",
538 + "name": "cat-e18c9c539b86",
1694 539 "parent_id": null,
1695 540 "posting": {
1696 541 "create_topic": {
1697 − "kind": "everyone",
1698 − "min_trust": null
542 + "kind": "min_trust",
543 + "min_trust": 3
1699 544 },
1700 545 "reply": {
1701 546 "kind": "everyone",
1702 547 "min_trust": null
1703 548 }
1704 549 },
1705 − "slug": "open-1981b45a1565",
1706 − "topic_count": 1,
550 + "reactions": {
551 + "keys": [],
552 + "mode": "all"
553 + },
554 + "slug": "cat-e18c9c539b86",
555 + "topic_count": 0,
1707 556 "watching": false
1708 557 },
1709 558 {
1710 − "can_create_topic": true,
1711 − "can_reply": true,
559 + "can_create_topic": false,
560 + "can_reply": false,
1712 561 "colors": [
1713 − "#7c3aed"
562 + "#7c3aed",
563 + "#0088CC"
1714 564 ],
1715 − "depth": 1,
565 + "depth": 2,
1716 566 "description": null,
1717 − "id": "01a239d1-98a7-753a-8518-5ec5b2f4078e",
1718 − "name": "Open",
1719 − "parent_id": null,
567 + "id": "01a239ed-e334-7527-9518-9fb4900f1687",
568 + "name": "Sub c3a7c396adca",
569 + "parent_id": "01a239ed-e31b-7210-80bf-e18da3abb3e6",
1720 570 "posting": {
1721 571 "create_topic": {
1722 − "kind": "everyone",
572 + "kind": "staff",
1723 573 "min_trust": null
1724 574 },
1725 575 "reply": {
1726 − "kind": "everyone",
1727 − "min_trust": null
576 + "kind": "min_trust",
577 + "min_trust": 2
1728 578 }
1729 579 },
1730 − "slug": "open-5ec43a6363c9",
1731 − "topic_count": 1,
580 + "reactions": {
581 + "keys": [],
582 + "mode": "all"
583 + },
584 + "slug": "sub-c3a7c396adca",
585 + "topic_count": 0,
1732 586 "watching": false
1733 587 },
1734 588 {
@@ -1739,8 +593,8 @@
1739 593 ],
1740 594 "depth": 1,
1741 595 "description": null,
1742 − "id": "01a239d9-5f85-7341-9702-6a467edc1fa7",
1743 − "name": "Open",
596 + "id": "01a239ed-e6cb-7231-8927-faa0af8112d4",
597 + "name": "cat-fa9f4cea612a",
1744 598 "parent_id": null,
1745 599 "posting": {
1746 600 "create_topic": {
@@ -1752,7 +606,11 @@
1752 606 "min_trust": null
1753 607 }
1754 608 },
1755 − "slug": "open-6a45676e815a",
609 + "reactions": {
610 + "keys": [],
611 + "mode": "all"
612 + },
613 + "slug": "cat-fa9f4cea612a",
1756 614 "topic_count": 1,
1757 615 "watching": false
1758 616 },
@@ -1764,8 +622,8 @@
1764 622 ],
1765 623 "depth": 1,
1766 624 "description": null,
1767 − "id": "01a239d9-5fde-7163-83aa-c810245bc226",
1768 − "name": "Open",
625 + "id": "01a239ed-f3bd-769e-9d8a-eef6b146342b",
626 + "name": "General",
1769 627 "parent_id": null,
1770 628 "posting": {
1771 629 "create_topic": {
@@ -1777,8 +635,12 @@
1777 635 "min_trust": null
1778 636 }
1779 637 },
1780 − "slug": "open-c80f216a7ea9",
1781 − "topic_count": 1,
638 + "reactions": {
639 + "keys": [],
640 + "mode": "all"
641 + },
642 + "slug": "general-eef5357be935",
643 + "topic_count": 3,
1782 644 "watching": false
1783 645 },
1784 646 {
@@ -1789,8 +651,8 @@
1789 651 ],
1790 652 "depth": 1,
1791 653 "description": null,
1792 − "id": "01a239d9-5ff9-752b-a2b2-6411a572d2e0",
1793 − "name": "Open",
654 + "id": "01a239ed-dd9a-7143-9d09-4f0c3050e498",
655 + "name": "General",
1794 656 "parent_id": null,
1795 657 "posting": {
1796 658 "create_topic": {
@@ -1802,8 +664,12 @@
1802 664 "min_trust": null
1803 665 }
1804 666 },
1805 − "slug": "open-64100987d593",
1806 − "topic_count": 1,
667 + "reactions": {
668 + "keys": [],
669 + "mode": "all"
670 + },
671 + "slug": "general-4f0bc97d378b",
672 + "topic_count": 3,
1807 673 "watching": false
1808 674 },
1809 675 {
@@ -1814,8 +680,8 @@
1814 680 ],
1815 681 "depth": 1,
1816 682 "description": null,
1817 − "id": "01a239d1-9891-7349-b839-3fb815ef6c69",
1818 − "name": "Open",
683 + "id": "01a239ee-21e3-770c-b92a-7e0c7c9b4596",
684 + "name": "General",
1819 685 "parent_id": null,
1820 686 "posting": {
1821 687 "create_topic": {
@@ -1827,9 +693,13 @@
1827 693 "min_trust": null
1828 694 }
1829 695 },
1830 − "slug": "open-697103fcd305",
1831 − "topic_count": 1,
1832 − "watching": false
696 + "reactions": {
697 + "keys": [],
698 + "mode": "all"
699 + },
700 + "slug": "general-7e0bcba419d8",
701 + "topic_count": 2,
702 + "watching": true
1833 703 },
1834 704 {
1835 705 "can_create_topic": true,
@@ -1839,7 +709,7 @@
1839 709 ],
1840 710 "depth": 1,
1841 711 "description": null,
1842 − "id": "01a239d0-18c4-727b-9e0c-74a0b62030a7",
712 + "id": "01a239ed-dc05-71e4-aaa8-18917a4c3598",
1843 713 "name": "Open",
1844 714 "parent_id": null,
1845 715 "posting": {
@@ -1852,7 +722,11 @@
1852 722 "min_trust": null
1853 723 }
1854 724 },
1855 − "slug": "open-749feea96663",
725 + "reactions": {
726 + "keys": [],
727 + "mode": "all"
728 + },
729 + "slug": "open-1890f1160aca",
1856 730 "topic_count": 1,
1857 731 "watching": false
1858 732 },
@@ -1864,7 +738,7 @@
1864 738 ],
1865 739 "depth": 1,
1866 740 "description": null,
1867 − "id": "01a239d0-1763-7668-ad4e-3f4b13e9d9dc",
741 + "id": "01a239ed-dcf1-75b6-82d5-707d803fb38e",
1868 742 "name": "Open",
1869 743 "parent_id": null,
1870 744 "posting": {
@@ -1877,7 +751,11 @@
1877 751 "min_trust": null
1878 752 }
1879 753 },
1880 − "slug": "open-3f4a1cbae998",
754 + "reactions": {
755 + "keys": [],
756 + "mode": "all"
757 + },
758 + "slug": "open-707cee6428f7",
1881 759 "topic_count": 1,
1882 760 "watching": false
1883 761 },
@@ -1889,7 +767,7 @@
1889 767 ],
1890 768 "depth": 1,
1891 769 "description": null,
1892 − "id": "01a239d0-175e-7582-98d1-a1fe5d13ae48",
770 + "id": "01a239ed-db83-7014-a63c-b5af2696720c",
1893 771 "name": "Open",
1894 772 "parent_id": null,
1895 773 "posting": {
@@ -1902,7 +780,11 @@
1902 780 "min_trust": null
1903 781 }
1904 782 },
1905 − "slug": "open-a1fd2d22b489",
783 + "reactions": {
784 + "keys": [],
785 + "mode": "all"
786 + },
787 + "slug": "open-b5ae79be107e",
1906 788 "topic_count": 1,
1907 789 "watching": false
1908 790 },
@@ -1914,7 +796,7 @@
1914 796 ],
1915 797 "depth": 1,
1916 798 "description": null,
1917 − "id": "01a239d0-16e7-75ce-bc71-375ccf1b3046",
799 + "id": "01a239ed-db92-70de-aa08-74c573efd563",
1918 800 "name": "Open",
1919 801 "parent_id": null,
1920 802 "posting": {
@@ -1927,7 +809,11 @@
1927 809 "min_trust": null
1928 810 }
1929 811 },
1930 − "slug": "open-375b785c681e",
812 + "reactions": {
813 + "keys": [],
814 + "mode": "all"
815 + },
816 + "slug": "open-74c4fab985fd",
1931 817 "topic_count": 1,
1932 818 "watching": false
1933 819 },
@@ -1939,7 +825,7 @@
1939 825 ],
1940 826 "depth": 1,
1941 827 "description": "General discussion about anything.",
1942 − "id": "81694854-7389-4b07-b935-7244de35309f",
828 + "id": "bda69fd9-82a6-479b-a3a9-b0bd27983594",
1943 829 "name": "General",
1944 830 "parent_id": null,
1945 831 "posting": {
@@ -1952,6 +838,10 @@
1952 838 "min_trust": null
1953 839 }
1954 840 },
841 + "reactions": {
842 + "keys": [],
843 + "mode": "all"
844 + },
1955 845 "slug": "general",
1956 846 "topic_count": 0,
1957 847 "watching": false
modified android/app/src/test/resources/api/category.json
+33 −29

Click to load diff…

modified android/app/src/test/resources/api/category_staff_only.json
+46 −4

Click to load diff…

modified android/app/src/test/resources/api/devices.json
+4 −4

Click to load diff…

modified android/app/src/test/resources/api/error_silenced.json
+1 −1

Click to load diff…

modified android/app/src/test/resources/api/me.json
+5 −5

Click to load diff…

modified android/app/src/test/resources/api/me_silenced.json
+8 −8

Click to load diff…

modified android/app/src/test/resources/api/notifications.json
+6 −6

Click to load diff…

modified android/app/src/test/resources/api/reply.json
+5 −5

Click to load diff…

modified android/app/src/test/resources/api/search.json
+48 −152

Click to load diff…

modified android/app/src/test/resources/api/tag.json
+18 −18

Click to load diff…

modified android/app/src/test/resources/api/tags.json
+6 −16

Click to load diff…

modified android/app/src/test/resources/api/topic.json
+20 −20

Click to load diff…

modified android/app/src/test/resources/api/topic_locked.json
+26 −26

Click to load diff…

added android/app/src/test/resources/api/topic_no_reactions.json
+59 −0

Click to load diff…

modified docs/api.md
+8 −2

Click to load diff…

modified migration/src/lib.rs
+2 −0

Click to load diff…

added migration/src/m20240101_000021_category_reactions.rs
+33 −0

Click to load diff…

modified src/actions.rs
+20 −3

Click to load diff…

modified src/api/forum.rs
+17 −0

Click to load diff…

modified src/entities/categories.rs
+6 −0

Click to load diff…

modified src/handlers/categories.rs
+96 −7

Click to load diff…

modified src/handlers/focus.rs
+8 −3

Click to load diff…

modified src/handlers/forum.rs
+9 −4

Click to load diff…

modified src/handlers/notifications.rs
+14 −12

Click to load diff…

modified src/handlers/reactions.rs
+4 −0

Click to load diff…

modified src/policy.rs
+115 −0

Click to load diff…

modified src/seed.rs
+9 −2

Click to load diff…

modified templates/admin/_category_add.html
+11 −0

Click to load diff…

modified templates/admin/category_form.html
+18 −0

Click to load diff…

modified tests/api_db.rs
+7 −0

Click to load diff…

modified tests/moderation_db.rs
+111 −0

Click to load diff…

Parents: 4fa4298