Ejemplo n.º 1
0
         PostCommentReactionsEmojiCount.as_view(),
         name='post-comment-reactions-emoji-count'),
    path('<int:post_comment_reaction_id>/',
         PostCommentReactionItem.as_view(),
         name='post-comment-reaction'),
]

post_comment_notifications_patterns = [
    path('mute/', MutePostComment.as_view(), name='mute-post-comment'),
    path('unmute/', UnmutePostComment.as_view(), name='unmute-post-comment'),
]

post_comment_patterns = [
    path('', PostCommentItem.as_view(), name='post-comment'),
    path('translate/',
         TranslatePostComment.as_view(),
         name='translate-post-comment'),
    path('report/', ReportPostComment.as_view(), name='report-post-comment'),
    path('replies/', PostCommentReplies.as_view(),
         name='post-comment-replies'),
    path('reactions/',
         include(post_comment_reactions_patterns),
         name='post-comment-replies'),
    path('notifications/', include(post_comment_notifications_patterns)),
]

post_participants_patterns = [
    path('', GetPostParticipants.as_view(), name='get-post-participants'),
    path('search/',
         SearchPostParticipants.as_view(),
         name='search-post-participants'),
Ejemplo n.º 2
0
    path('unmute/', UnmutePost.as_view(), name='unmute-post'),
]

post_comment_reactions_patterns = [
    path('', PostCommentReactions.as_view(), name='post-comment-reactions'),
    path('emoji-count/', PostCommentReactionsEmojiCount.as_view(), name='post-comment-reactions-emoji-count'),
    path('<int:post_comment_reaction_id>/', PostCommentReactionItem.as_view(), name='post-comment-reaction'), ]

post_comment_notifications_patterns = [
    path('mute/', MutePostComment.as_view(), name='mute-post-comment'),
    path('unmute/', UnmutePostComment.as_view(), name='unmute-post-comment'),
]

post_comment_patterns = [
    path('', PostCommentItem.as_view(), name='post-comment'),
    path('translate/', TranslatePostComment.as_view(), name='translate-post-comment'),
    path('report/', ReportPostComment.as_view(), name='report-post-comment'),
    path('replies/', PostCommentReplies.as_view(), name='post-comment-replies'),
    path('reactions/', include(post_comment_reactions_patterns), name='post-comment-replies'),
    path('notifications/', include(post_comment_notifications_patterns)),
]

post_participants_patterns = [
    path('', GetPostParticipants.as_view(), name='get-post-participants'),
    path('search/', SearchPostParticipants.as_view(), name='search-post-participants'),
]

post_media_patterns = [
    path('', PostMedia.as_view(), name='post-media'),
]