Debian Codegraph @

gallery_dl/extractor/utils/joyreactor_graphql.py

raw
1 # -*- coding: utf-8 -*-
2
3 # Copyright 2026 Mike Fährmann
4 #
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License version 2 as
7 # published by the Free Software Foundation.
8
9
10 IdPostPageQuery = """\
11 query IdPostPageQuery(
12 $id: ID!
13 $isAuthorised: Boolean!
14 ) {
15 node(id: $id) {
16 __typename
17 ... on Post {
18 id
19 user {
20 id
21 }
22 text
23 nsfw
24 unsafe
25 seoAttributes {
26 title
27 description
28 ocr
29 similarPosts
30 }
31 ...Post_post_2lIf9C
32 comments {
33 ...CommentTree_comments_48QSE5
34 id
35 }
36 tags {
37 ...TagList_blogs
38 id
39 }
40 }
41 id
42 }
43 }
44
45 fragment AttributeEmbed_attribute on AttributeEmbed {
46 __isAttributeEmbed: __typename
47 type
48 value
49 image {
50 comment
51 id
52 }
53 }
54
55 fragment AttributePicture_attribute on AttributePicture {
56 __isAttributePicture: __typename
57 id
58 type
59 insertId
60 image {
61 width
62 height
63 type
64 comment
65 hasVideo
66 id
67 }
68 }
69
70 fragment AttributePicture_post on Post {
71 nsfw
72 tags {
73 name
74 seoName
75 synonyms
76 id
77 }
78 }
79
80 fragment Attribute_attribute on Attribute {
81 __isAttribute: __typename
82 type
83 ...AttributePicture_attribute
84 ...AttributeEmbed_attribute
85 }
86
87 fragment Attribute_post on Post {
88 ...AttributePicture_post
89 }
90
91 fragment CommentTree_comments_2EWd0p on Comment {
92 id
93 locale
94 level
95 parent {
96 __typename
97 id
98 }
99 createdAt
100 user {
101 id
102 }
103 ...Comment_comment_2EWd0p
104 }
105
106 fragment CommentTree_comments_48QSE5 on Comment {
107 id
108 locale
109 level
110 parent {
111 __typename
112 id
113 }
114 createdAt
115 user {
116 id
117 }
118 ...Comment_comment_48QSE5
119 }
120
121 fragment CommentTree_post on Post {
122 id
123 ...Comment_post
124 }
125
126 fragment CommentVote_comment on Comment {
127 id
128 rating
129 voted
130 }
131
132 fragment Comment_comment_2EWd0p on Comment {
133 id
134 user {
135 id
136 username
137 }
138 createdAt
139 rating
140 level
141 contentVersion
142 banned
143 contentEditedAt
144 locale
145 ...EditableCommentContent_content
146 ...Content_content
147 }
148
149 fragment Comment_comment_48QSE5 on Comment {
150 id
151 user {
152 id
153 username
154 }
155 createdAt
156 rating
157 level
158 contentVersion
159 banned
160 contentEditedAt
161 locale
162 ...EditableCommentContent_content
163 ...Content_content
164 ...CommentVote_comment @include(if: $isAuthorised)
165 }
166
167 fragment Comment_post on Post {
168 id
169 ...Content_post
170 }
171
172 fragment Content_content on Content {
173 __isContent: __typename
174 text
175 attributes {
176 __typename
177 id
178 insertId
179 ...Attribute_attribute
180 }
181 }
182
183 fragment Content_post on Post {
184 ...Attribute_post
185 }
186
187 fragment EditableCommentContent_content on Content {
188 __isContent: __typename
189 text
190 attributes {
191 __typename
192 id
193 insertId
194 type
195 image {
196 id
197 hasVideo
198 type
199 width
200 height
201 }
202 ... on CommentAttributeEmbed {
203 value
204 }
205 }
206 }
207
208 fragment Poll_post_2lIf9C on Post {
209 id
210 poll {
211 question
212 answers {
213 id
214 answer
215 count
216 }
217 voted @include(if: $isAuthorised)
218 }
219 }
220
221 fragment PostComments_post_2lIf9C on Post {
222 id
223 viewedCommentsAt @include(if: $isAuthorised)
224 viewedCommentsCount @include(if: $isAuthorised)
225 commentsCount
226 user {
227 id
228 }
229 unsafe
230 ...CommentTree_post
231 }
232
233 fragment PostFooter_post_2lIf9C on Post {
234 id
235 commentsCount
236 rating
237 ratingGeneral
238 createdAt
239 viewedCommentsCount @include(if: $isAuthorised)
240 favorite @include(if: $isAuthorised)
241 ...PostVote_post @include(if: $isAuthorised)
242 }
243
244 fragment PostTags_post on Post {
245 id
246 user {
247 id
248 }
249 postTags {
250 deletable
251 tag {
252 id
253 name
254 seoName
255 showAsCategory
256 mainTag {
257 id
258 category {
259 id
260 }
261 userTag {
262 state
263 }
264 }
265 }
266 }
267 }
268
269 fragment PostVote_post on Post {
270 id
271 rating
272 ratingGeneral
273 minusThreshold
274 vote {
275 createdAt
276 power
277 }
278 }
279
280 fragment Post_post_2lIf9C on Post {
281 id
282 user {
283 id
284 username
285 }
286 bestComments {
287 ...CommentTree_comments_2EWd0p
288 id
289 }
290 tags {
291 mainTag {
292 id
293 name
294 category {
295 id
296 }
297 userTag {
298 state
299 }
300 }
301 id
302 }
303 nsfw
304 unsafe
305 createdAt
306 editableUntil
307 text
308 favorite @include(if: $isAuthorised)
309 ...PostVote_post @include(if: $isAuthorised)
310 banned
311 poll {
312 question
313 }
314 commentsCount
315 ...CommentTree_post
316 ...PostTags_post
317 ...Content_post
318 ...Content_content
319 ...PostFooter_post_2lIf9C
320 ...PostComments_post_2lIf9C
321 ...Poll_post_2lIf9C
322 }
323
324 fragment TagList_blogs on Tag {
325 id
326 name
327 seoName
328 count
329 subscribers
330 showAsCategory
331 mainTag {
332 nsfw
333 unsafe
334 category {
335 name
336 id
337 }
338 id
339 }
340 }
341 """
342
343 TagPageQuery = """\
344 query TagPageQuery(
345 $name: String
346 $lineType: PostLineType!
347 $favoriteType: PostLineType
348 $page: Int
349 $isAuthorised: Boolean!
350 $isHomepage: Boolean!
351 ) {
352 tag(name: $name) {
353 id
354 name
355 mainTag {
356 id
357 hierarchy {
358 mainTag {
359 name
360 id
361 }
362 id
363 }
364 nsfw
365 unsafe
366 synonyms
367 count
368 seoName
369 category {
370 name
371 unsafe
372 nsfw
373 id
374 }
375 }
376 count
377 postPager(type: $lineType, favoriteType: $favoriteType) {
378 count
379 id
380 }
381 ...TagHeader_blog @skip(if: $isHomepage)
382 ...TagSidebar_blog @skip(if: $isHomepage)
383 ...TagPostPager_blog_qTg8U
384 }
385 }
386
387 fragment AttributeEmbed_attribute on AttributeEmbed {
388 __isAttributeEmbed: __typename
389 type
390 value
391 image {
392 comment
393 id
394 }
395 }
396
397 fragment AttributePicture_attribute on AttributePicture {
398 __isAttributePicture: __typename
399 id
400 type
401 insertId
402 image {
403 width
404 height
405 type
406 comment
407 hasVideo
408 id
409 }
410 }
411
412 fragment AttributePicture_post on Post {
413 nsfw
414 tags {
415 name
416 seoName
417 synonyms
418 id
419 }
420 }
421
422 fragment Attribute_attribute on Attribute {
423 __isAttribute: __typename
424 type
425 ...AttributePicture_attribute
426 ...AttributeEmbed_attribute
427 }
428
429 fragment Attribute_post on Post {
430 ...AttributePicture_post
431 }
432
433 fragment BlogDescription_blog on Tag {
434 id
435 articlePost {
436 ...Content_post
437 ...Content_content
438 id
439 }
440 }
441
442 fragment CommentTree_comments_2EWd0p on Comment {
443 id
444 locale
445 level
446 parent {
447 __typename
448 id
449 }
450 createdAt
451 user {
452 id
453 }
454 ...Comment_comment_2EWd0p
455 }
456
457 fragment CommentTree_post on Post {
458 id
459 ...Comment_post
460 }
461
462 fragment Comment_comment_2EWd0p on Comment {
463 id
464 user {
465 id
466 username
467 }
468 createdAt
469 rating
470 level
471 contentVersion
472 banned
473 contentEditedAt
474 locale
475 ...EditableCommentContent_content
476 ...Content_content
477 }
478
479 fragment Comment_post on Post {
480 id
481 ...Content_post
482 }
483
484 fragment Content_content on Content {
485 __isContent: __typename
486 text
487 attributes {
488 __typename
489 id
490 insertId
491 ...Attribute_attribute
492 }
493 }
494
495 fragment Content_post on Post {
496 ...Attribute_post
497 }
498
499 fragment EditableCommentContent_content on Content {
500 __isContent: __typename
501 text
502 attributes {
503 __typename
504 id
505 insertId
506 type
507 image {
508 id
509 hasVideo
510 type
511 width
512 height
513 }
514 ... on CommentAttributeEmbed {
515 value
516 }
517 }
518 }
519
520 fragment Poll_post_2lIf9C on Post {
521 id
522 poll {
523 question
524 answers {
525 id
526 answer
527 count
528 }
529 voted @include(if: $isAuthorised)
530 }
531 }
532
533 fragment PostComments_post_2lIf9C on Post {
534 id
535 viewedCommentsAt @include(if: $isAuthorised)
536 viewedCommentsCount @include(if: $isAuthorised)
537 commentsCount
538 user {
539 id
540 }
541 unsafe
542 ...CommentTree_post
543 }
544
545 fragment PostFooter_post_2lIf9C on Post {
546 id
547 commentsCount
548 rating
549 ratingGeneral
550 createdAt
551 viewedCommentsCount @include(if: $isAuthorised)
552 favorite @include(if: $isAuthorised)
553 ...PostVote_post @include(if: $isAuthorised)
554 }
555
556 fragment PostPager_posts_3OSKdM on PostPager {
557 posts(page: $page) {
558 id
559 nsfw
560 unsafe
561 tags {
562 mainTag {
563 id
564 nsfw
565 unsafe
566 category {
567 id
568 }
569 userTag {
570 state
571 }
572 }
573 id
574 }
575 user {
576 username
577 id
578 }
579 commentsCount
580 ...Post_post_2lIf9C
581 }
582 count
583 id
584 }
585
586 fragment PostTags_post on Post {
587 id
588 user {
589 id
590 }
591 postTags {
592 deletable
593 tag {
594 id
595 name
596 seoName
597 showAsCategory
598 mainTag {
599 id
600 category {
601 id
602 }
603 userTag {
604 state
605 }
606 }
607 }
608 }
609 }
610
611 fragment PostVote_post on Post {
612 id
613 rating
614 ratingGeneral
615 minusThreshold
616 vote {
617 createdAt
618 power
619 }
620 }
621
622 fragment Post_post_2lIf9C on Post {
623 id
624 user {
625 id
626 username
627 }
628 bestComments {
629 ...CommentTree_comments_2EWd0p
630 id
631 }
632 tags {
633 mainTag {
634 id
635 name
636 category {
637 id
638 }
639 userTag {
640 state
641 }
642 }
643 id
644 }
645 nsfw
646 unsafe
647 createdAt
648 editableUntil
649 text
650 favorite @include(if: $isAuthorised)
651 ...PostVote_post @include(if: $isAuthorised)
652 banned
653 poll {
654 question
655 }
656 commentsCount
657 ...CommentTree_post
658 ...PostTags_post
659 ...Content_post
660 ...Content_content
661 ...PostFooter_post_2lIf9C
662 ...PostComments_post_2lIf9C
663 ...Poll_post_2lIf9C
664 }
665
666 fragment TagHeader_blog on Tag {
667 id
668 seoName
669 name
670 mainTag {
671 id
672 unsafe
673 nsfw
674 articlePost {
675 id
676 }
677 ...BlogDescription_blog
678 subTagsMenu {
679 ...TagList_blogs
680 id
681 }
682 subTags {
683 ...TagList_blogs
684 id
685 }
686 ...TagSuperBlogs_blog
687 hierarchy {
688 mainTag {
689 id
690 name
691 showAsCategory
692 }
693 id
694 }
695 synonyms
696 subscribers
697 count
698 image {
699 id
700 }
701 userTag {
702 state
703 }
704 articleImage {
705 id
706 type
707 }
708 category {
709 id
710 name
711 category {
712 id
713 }
714 showAsCategory
715 nsfw
716 unsafe
717 }
718 moderators {
719 ...UserList_users
720 id
721 }
722 }
723 ...TagSidebar_blog
724 }
725
726 fragment TagList_blogs on Tag {
727 id
728 name
729 seoName
730 count
731 subscribers
732 showAsCategory
733 mainTag {
734 nsfw
735 unsafe
736 category {
737 name
738 id
739 }
740 id
741 }
742 }
743
744 fragment TagPostPager_blog_qTg8U on Tag {
745 unsafe
746 postPager(type: $lineType, favoriteType: $favoriteType) {
747 ...PostPager_posts_3OSKdM
748 count
749 id
750 }
751 }
752
753 fragment TagSidebar_blog on Tag {
754 name
755 mainTag {
756 subTagsMenu {
757 id
758 }
759 subTags {
760 ...TagList_blogs
761 id
762 }
763 ...TagSuperBlogs_blog
764 nsfw
765 unsafe
766 category {
767 id
768 name
769 category {
770 id
771 }
772 nsfw
773 unsafe
774 }
775 moderators {
776 ...UserList_users
777 id
778 }
779 id
780 }
781 }
782
783 fragment TagSuperBlogs_blog on Tag {
784 subTagsMenu {
785 id
786 name
787 nsfw
788 unsafe
789 showAsCategory
790 }
791 }
792
793 fragment UserList_users on User {
794 id
795 username
796 }
797 """
798
799 UserProfilePageQuery = """\
800 query UserProfilePageQuery(
801 $username: String!
802 $page: Int
803 $isAuthorised: Boolean!
804 $selfOrAdmin: Boolean!
805 ) {
806 user(username: $username) {
807 id
808 postPager {
809 ...PostPager_posts_3OSKdM
810 count
811 id
812 }
813 ...UserSidebar_user_2lIf9C
814 active @include(if: $selfOrAdmin)
815 postsBannedUntil @include(if: $selfOrAdmin)
816 commentsBannedUntil @include(if: $selfOrAdmin)
817 tagBans @include(if: $selfOrAdmin) {
818 tag {
819 id
820 name
821 }
822 bannedUntil
823 }
824 donatedLeft @include(if: $selfOrAdmin)
825 goldStatusExpire @include(if: $selfOrAdmin)
826 platinumStatusExpire @include(if: $selfOrAdmin)
827 settings @include(if: $selfOrAdmin) {
828 goldStatusExtend
829 }
830 userState @include(if: $isAuthorised)
831 }
832 me {
833 goldStatus
834 platinumStatus
835 id
836 }
837 }
838
839 fragment AttributeEmbed_attribute on AttributeEmbed {
840 __isAttributeEmbed: __typename
841 type
842 value
843 image {
844 comment
845 id
846 }
847 }
848
849 fragment AttributePicture_attribute on AttributePicture {
850 __isAttributePicture: __typename
851 id
852 type
853 insertId
854 image {
855 width
856 height
857 type
858 comment
859 hasVideo
860 id
861 }
862 }
863
864 fragment AttributePicture_post on Post {
865 nsfw
866 tags {
867 name
868 seoName
869 synonyms
870 id
871 }
872 }
873
874 fragment Attribute_attribute on Attribute {
875 __isAttribute: __typename
876 type
877 ...AttributePicture_attribute
878 ...AttributeEmbed_attribute
879 }
880
881 fragment Attribute_post on Post {
882 ...AttributePicture_post
883 }
884
885 fragment CommentTree_comments_2EWd0p on Comment {
886 id
887 locale
888 level
889 parent {
890 __typename
891 id
892 }
893 createdAt
894 user {
895 id
896 }
897 ...Comment_comment_2EWd0p
898 }
899
900 fragment CommentTree_post on Post {
901 id
902 ...Comment_post
903 }
904
905 fragment Comment_comment_2EWd0p on Comment {
906 id
907 user {
908 id
909 username
910 }
911 createdAt
912 rating
913 level
914 contentVersion
915 banned
916 contentEditedAt
917 locale
918 ...EditableCommentContent_content
919 ...Content_content
920 }
921
922 fragment Comment_post on Post {
923 id
924 ...Content_post
925 }
926
927 fragment Content_content on Content {
928 __isContent: __typename
929 text
930 attributes {
931 __typename
932 id
933 insertId
934 ...Attribute_attribute
935 }
936 }
937
938 fragment Content_post on Post {
939 ...Attribute_post
940 }
941
942 fragment EditableCommentContent_content on Content {
943 __isContent: __typename
944 text
945 attributes {
946 __typename
947 id
948 insertId
949 type
950 image {
951 id
952 hasVideo
953 type
954 width
955 height
956 }
957 ... on CommentAttributeEmbed {
958 value
959 }
960 }
961 }
962
963 fragment Poll_post_2lIf9C on Post {
964 id
965 poll {
966 question
967 answers {
968 id
969 answer
970 count
971 }
972 voted @include(if: $isAuthorised)
973 }
974 }
975
976 fragment PostComments_post_2lIf9C on Post {
977 id
978 viewedCommentsAt @include(if: $isAuthorised)
979 viewedCommentsCount @include(if: $isAuthorised)
980 commentsCount
981 user {
982 id
983 }
984 unsafe
985 ...CommentTree_post
986 }
987
988 fragment PostFooter_post_2lIf9C on Post {
989 id
990 commentsCount
991 rating
992 ratingGeneral
993 createdAt
994 viewedCommentsCount @include(if: $isAuthorised)
995 favorite @include(if: $isAuthorised)
996 ...PostVote_post @include(if: $isAuthorised)
997 }
998
999 fragment PostPager_posts_3OSKdM on PostPager {
1000 posts(page: $page) {
1001 id
1002 nsfw
1003 unsafe
1004 tags {
1005 mainTag {
1006 id
1007 nsfw
1008 unsafe
1009 category {
1010 id
1011 }
1012 userTag {
1013 state
1014 }
1015 }
1016 id
1017 }
1018 user {
1019 username
1020 id
1021 }
1022 commentsCount
1023 ...Post_post_2lIf9C
1024 }
1025 count
1026 id
1027 }
1028
1029 fragment PostTags_post on Post {
1030 id
1031 user {
1032 id
1033 }
1034 postTags {
1035 deletable
1036 tag {
1037 id
1038 name
1039 seoName
1040 showAsCategory
1041 mainTag {
1042 id
1043 category {
1044 id
1045 }
1046 userTag {
1047 state
1048 }
1049 }
1050 }
1051 }
1052 }
1053
1054 fragment PostVote_post on Post {
1055 id
1056 rating
1057 ratingGeneral
1058 minusThreshold
1059 vote {
1060 createdAt
1061 power
1062 }
1063 }
1064
1065 fragment Post_post_2lIf9C on Post {
1066 id
1067 user {
1068 id
1069 username
1070 }
1071 bestComments {
1072 ...CommentTree_comments_2EWd0p
1073 id
1074 }
1075 tags {
1076 mainTag {
1077 id
1078 name
1079 category {
1080 id
1081 }
1082 userTag {
1083 state
1084 }
1085 }
1086 id
1087 }
1088 nsfw
1089 unsafe
1090 createdAt
1091 editableUntil
1092 text
1093 favorite @include(if: $isAuthorised)
1094 ...PostVote_post @include(if: $isAuthorised)
1095 banned
1096 poll {
1097 question
1098 }
1099 commentsCount
1100 ...CommentTree_post
1101 ...PostTags_post
1102 ...Content_post
1103 ...Content_content
1104 ...PostFooter_post_2lIf9C
1105 ...PostComments_post_2lIf9C
1106 ...Poll_post_2lIf9C
1107 }
1108
1109 fragment TagList_blogs on Tag {
1110 id
1111 name
1112 seoName
1113 count
1114 subscribers
1115 showAsCategory
1116 mainTag {
1117 nsfw
1118 unsafe
1119 category {
1120 name
1121 id
1122 }
1123 id
1124 }
1125 }
1126
1127 fragment UserAwards_awardUser on AwardUser {
1128 award {
1129 id
1130 name
1131 description
1132 picUrl
1133 nextAward {
1134 id
1135 }
1136 }
1137 hidden
1138 }
1139
1140 fragment UserList_users on User {
1141 id
1142 username
1143 }
1144
1145 fragment UserSidebar_user_2lIf9C on User {
1146 id
1147 username
1148 rating
1149 ratingWeek
1150 hideSubscriptionsRatings
1151 commentNum
1152 postNum
1153 goodPostNum
1154 bestPostNum
1155 about
1156 createdAt
1157 sequentialVisits
1158 totalVisits
1159 lastVisit
1160 canSendPrivateMessage @include(if: $isAuthorised)
1161 awards {
1162 ...UserAwards_awardUser
1163 }
1164 subscribedTags {
1165 ...TagList_blogs
1166 id
1167 }
1168 moderatedTags {
1169 ...TagList_blogs
1170 id
1171 }
1172 blockedTags {
1173 ...TagList_blogs
1174 id
1175 }
1176 friends {
1177 ...UserList_users
1178 id
1179 }
1180 blockedUsers {
1181 ...UserList_users
1182 id
1183 }
1184 topTagRatings {
1185 ...UserTagRatings_favoriteTag
1186 }
1187 }
1188
1189 fragment UserTagRatings_favoriteTag on UserTag {
1190 tag {
1191 id
1192 name
1193 nsfw
1194 unsafe
1195 showAsCategory
1196 }
1197 rating
1198 }
1199 """
1200
1201 SearchPageQuery = """\
1202 query SearchPageQuery(
1203 $query: String!
1204 $showNsfw: Boolean
1205 $showUnsafe: Boolean
1206 $showOnlyNsfw: Boolean
1207 $tagNames: [String!]
1208 $username: String
1209 $page: Int
1210 $isAuthorised: Boolean!
1211 $minRating: Int
1212 $maxRating: Int
1213 $sortByRating: Boolean
1214 $sortByDate: Boolean
1215 ) {
1216 search(query: $query, showNsfw: $showNsfw, showUnsafe: $showUnsafe, \
1217 showOnlyNsfw: $showOnlyNsfw, username: $username, tagNames: $tagNames, \
1218 sortByDate: $sortByDate, sortByRating: $sortByRating, minRating: \
1219 $minRating, maxRating: $maxRating) {
1220 tags {
1221 ...TagList_blogs
1222 mainTag {
1223 id
1224 unsafe
1225 }
1226 id
1227 }
1228 postPager {
1229 ...PostPager_posts_3OSKdM
1230 count
1231 id
1232 }
1233 similarQueries @skip(if: $isAuthorised)
1234 }
1235 }
1236
1237 fragment AttributeEmbed_attribute on AttributeEmbed {
1238 __isAttributeEmbed: __typename
1239 type
1240 value
1241 image {
1242 comment
1243 id
1244 }
1245 }
1246
1247 fragment AttributePicture_attribute on AttributePicture {
1248 __isAttributePicture: __typename
1249 id
1250 type
1251 insertId
1252 image {
1253 width
1254 height
1255 type
1256 comment
1257 hasVideo
1258 id
1259 }
1260 }
1261
1262 fragment AttributePicture_post on Post {
1263 nsfw
1264 tags {
1265 name
1266 seoName
1267 synonyms
1268 id
1269 }
1270 }
1271
1272 fragment Attribute_attribute on Attribute {
1273 __isAttribute: __typename
1274 type
1275 ...AttributePicture_attribute
1276 ...AttributeEmbed_attribute
1277 }
1278
1279 fragment Attribute_post on Post {
1280 ...AttributePicture_post
1281 }
1282
1283 fragment CommentTree_comments_2EWd0p on Comment {
1284 id
1285 locale
1286 level
1287 parent {
1288 __typename
1289 id
1290 }
1291 createdAt
1292 user {
1293 id
1294 }
1295 ...Comment_comment_2EWd0p
1296 }
1297
1298 fragment CommentTree_post on Post {
1299 id
1300 ...Comment_post
1301 }
1302
1303 fragment Comment_comment_2EWd0p on Comment {
1304 id
1305 user {
1306 id
1307 username
1308 }
1309 createdAt
1310 rating
1311 level
1312 contentVersion
1313 banned
1314 contentEditedAt
1315 locale
1316 ...EditableCommentContent_content
1317 ...Content_content
1318 }
1319
1320 fragment Comment_post on Post {
1321 id
1322 ...Content_post
1323 }
1324
1325 fragment Content_content on Content {
1326 __isContent: __typename
1327 text
1328 attributes {
1329 __typename
1330 id
1331 insertId
1332 ...Attribute_attribute
1333 }
1334 }
1335
1336 fragment Content_post on Post {
1337 ...Attribute_post
1338 }
1339
1340 fragment EditableCommentContent_content on Content {
1341 __isContent: __typename
1342 text
1343 attributes {
1344 __typename
1345 id
1346 insertId
1347 type
1348 image {
1349 id
1350 hasVideo
1351 type
1352 width
1353 height
1354 }
1355 ... on CommentAttributeEmbed {
1356 value
1357 }
1358 }
1359 }
1360
1361 fragment Poll_post_2lIf9C on Post {
1362 id
1363 poll {
1364 question
1365 answers {
1366 id
1367 answer
1368 count
1369 }
1370 voted @include(if: $isAuthorised)
1371 }
1372 }
1373
1374 fragment PostComments_post_2lIf9C on Post {
1375 id
1376 viewedCommentsAt @include(if: $isAuthorised)
1377 viewedCommentsCount @include(if: $isAuthorised)
1378 commentsCount
1379 user {
1380 id
1381 }
1382 unsafe
1383 ...CommentTree_post
1384 }
1385
1386 fragment PostFooter_post_2lIf9C on Post {
1387 id
1388 commentsCount
1389 rating
1390 ratingGeneral
1391 createdAt
1392 viewedCommentsCount @include(if: $isAuthorised)
1393 favorite @include(if: $isAuthorised)
1394 ...PostVote_post @include(if: $isAuthorised)
1395 }
1396
1397 fragment PostPager_posts_3OSKdM on PostPager {
1398 posts(page: $page) {
1399 id
1400 nsfw
1401 unsafe
1402 tags {
1403 mainTag {
1404 id
1405 nsfw
1406 unsafe
1407 category {
1408 id
1409 }
1410 userTag {
1411 state
1412 }
1413 }
1414 id
1415 }
1416 user {
1417 username
1418 id
1419 }
1420 commentsCount
1421 ...Post_post_2lIf9C
1422 }
1423 count
1424 id
1425 }
1426
1427 fragment PostTags_post on Post {
1428 id
1429 user {
1430 id
1431 }
1432 postTags {
1433 deletable
1434 tag {
1435 id
1436 name
1437 seoName
1438 showAsCategory
1439 mainTag {
1440 id
1441 category {
1442 id
1443 }
1444 userTag {
1445 state
1446 }
1447 }
1448 }
1449 }
1450 }
1451
1452 fragment PostVote_post on Post {
1453 id
1454 rating
1455 ratingGeneral
1456 minusThreshold
1457 vote {
1458 createdAt
1459 power
1460 }
1461 }
1462
1463 fragment Post_post_2lIf9C on Post {
1464 id
1465 user {
1466 id
1467 username
1468 }
1469 bestComments {
1470 ...CommentTree_comments_2EWd0p
1471 id
1472 }
1473 tags {
1474 mainTag {
1475 id
1476 name
1477 category {
1478 id
1479 }
1480 userTag {
1481 state
1482 }
1483 }
1484 id
1485 }
1486 nsfw
1487 unsafe
1488 createdAt
1489 editableUntil
1490 text
1491 favorite @include(if: $isAuthorised)
1492 ...PostVote_post @include(if: $isAuthorised)
1493 banned
1494 poll {
1495 question
1496 }
1497 commentsCount
1498 ...CommentTree_post
1499 ...PostTags_post
1500 ...Content_post
1501 ...Content_content
1502 ...PostFooter_post_2lIf9C
1503 ...PostComments_post_2lIf9C
1504 ...Poll_post_2lIf9C
1505 }
1506
1507 fragment TagList_blogs on Tag {
1508 id
1509 name
1510 seoName
1511 count
1512 subscribers
1513 showAsCategory
1514 mainTag {
1515 nsfw
1516 unsafe
1517 category {
1518 name
1519 id
1520 }
1521 id
1522 }
1523 }
1524 """