Plugin Directory

Changeset 3450325

Timestamp:
01/30/2026 10:11:50 AM (5 weeks ago)
Author:
rtcamp
Message:

Update to version 4.7.9 from GitHub

Location:
buddypress-media
Files:
2 added
18 edited
1 copied

Legend:

Unmodified
Added
Removed
  • buddypress-media/tags/4.7.9/.github/workflows/create.yml

    r3433318 r3450325  
    1212    runs-on: ubuntu-latest
    1313    steps:
    14     - uses: actions/checkout@v4
     14    - uses: actions/checkout@v
    1515    - name: Install SVN ( Subversion )
    1616      run: |
  • buddypress-media/tags/4.7.9/.github/workflows/phpcs_on_pull_request.yml

    r3433318 r3450325  
    1111    runs-on: ubuntu-latest
    1212    steps:
    13     - uses: actions/checkout@v2
     13    - uses: actions/checkout@v
    1414      with:
    1515        ref: ${{ github.event.pull_request.head.sha }}
  • buddypress-media/tags/4.7.9/.github/workflows/playwright.yml

    r3433318 r3450325  
    2929    steps:
    3030      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
    31       - uses: actions/checkout@v3
     31      - uses: actions/checkout@v
    3232        with:
    3333          ref: ${{ github.event.pull_request.head.sha }}
     
    4747      - name: Archive HTML Report on failure
    4848        if: failure()
    49         uses: actions/upload-artifact@v4
     49        uses: actions/upload-artifact@v
    5050        with:
    5151          name: report
  • buddypress-media/tags/4.7.9/app/admin/RTMediaUploadTermsAdmin.php

    r3386907 r3450325  
    3838         */
    3939        public function __construct() {
    40             $this->upload_terms_message       = esc_html__( 'terms of services.', 'buddypress-media' );
    41             $this->upload_terms_error_message = esc_html__( 'Please check terms of service.', 'buddypress-media' );
     40            add_action( 'init', array( $this, 'init_translations' ), 5 );
    4241
    4342            add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts_styles' ), 999 );
     
    4544            add_filter( 'rtmedia_general_content_groups', array( $this, 'admin_setting_add_terms_section' ), 10, 1 );
    4645            add_filter( 'rtmedia_general_content_add_itmes', array( $this, 'admin_setting_add_terms_option' ), 10, 2 );
     46
     47
     48
     49
     50
     51
     52
     53
    4754        }
    4855
  • buddypress-media/tags/4.7.9/changelog.txt

    r3433318 r3450325  
    11== Changelog ==
     2
     3
     4
     5
     6
     7
     8
     9
     10
     11
    212
    313= 4.7.8 [January 06, 2026] =
  • buddypress-media/tags/4.7.9/index.php

    r3433318 r3450325  
    44 * Plugin URI: https://rtmedia.io/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
    55 * Description: This plugin adds missing media rich features like photos, videos and audio uploading to BuddyPress which are essential if you are building social network, seriously!
    6  * Version: 4.7.8
     6 * Version: 4.7.
    77 * Requires at least: 4.1
    88 * Text Domain: buddypress-media
     
    2323     * The version of the plugin
    2424     */
    25     define( 'RTMEDIA_VERSION', '4.7.8' );
     25    define( 'RTMEDIA_VERSION', '4.7.' );
    2626}
    2727
  • buddypress-media/tags/4.7.9/languages/buddpress-media.pot

    r3433318 r3450325  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: rtMedia for WordPress, BuddyPress and bbPress 4.7.8\n"
     5"Project-Id-Version: rtMedia for WordPress, BuddyPress and bbPress 4.7.\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/buddypress-media\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2026-01-06T06:20:43+00:00\n"
     12"POT-Creation-Date: 2026-01-+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
     
    792792msgstr ""
    793793
    794 #: app/admin/RTMediaUploadTermsAdmin.php:40
     794#: app/admin/RTMediaUploadTermsAdmin.php:
    795795msgid "terms of services."
    796796msgstr ""
    797797
    798 #: app/admin/RTMediaUploadTermsAdmin.php:41
     798#: app/admin/RTMediaUploadTermsAdmin.php:
    799799msgid "Please check terms of service."
    800800msgstr ""
    801801
    802 #: app/admin/RTMediaUploadTermsAdmin.php:62
     802#: app/admin/RTMediaUploadTermsAdmin.php:6
    803803msgid "Please enter valid URL."
    804804msgstr ""
    805805
    806 #: app/admin/RTMediaUploadTermsAdmin.php:63
     806#: app/admin/RTMediaUploadTermsAdmin.php:
    807807msgid "Please enter terms message."
    808808msgstr ""
    809809
    810 #: app/admin/RTMediaUploadTermsAdmin.php:64
     810#: app/admin/RTMediaUploadTermsAdmin.php:
    811811msgid "Please enter error message."
    812812msgstr ""
    813813
    814 #: app/admin/RTMediaUploadTermsAdmin.php:65
     814#: app/admin/RTMediaUploadTermsAdmin.php:
    815815msgid "Please enter privacy message."
    816816msgstr ""
    817817
    818 #: app/admin/RTMediaUploadTermsAdmin.php:126
     818#: app/admin/RTMediaUploadTermsAdmin.php:1
    819819msgid "Ask users to agree to your terms"
    820820msgstr ""
    821821
    822 #: app/admin/RTMediaUploadTermsAdmin.php:141
     822#: app/admin/RTMediaUploadTermsAdmin.php:14
    823823msgid "Show \"Terms of Service\" checkbox on upload screen"
    824824msgstr ""
    825825
    826 #: app/admin/RTMediaUploadTermsAdmin.php:146
    827 #: app/admin/RTMediaUploadTermsAdmin.php:156
     826#: app/admin/RTMediaUploadTermsAdmin.php:1
     827#: app/admin/RTMediaUploadTermsAdmin.php:1
    828828msgid "User have to check the terms and conditions before uploading the media."
    829829msgstr ""
    830830
    831 #: app/admin/RTMediaUploadTermsAdmin.php:151
     831#: app/admin/RTMediaUploadTermsAdmin.php:15
    832832msgid "Show \"Terms of Service\" checkbox on activity screen"
    833833msgstr ""
    834834
    835 #: app/admin/RTMediaUploadTermsAdmin.php:161
     835#: app/admin/RTMediaUploadTermsAdmin.php:16
    836836msgid "Link for \"Terms of Service\" page"
    837837msgstr ""
    838838
    839 #: app/admin/RTMediaUploadTermsAdmin.php:166
     839#: app/admin/RTMediaUploadTermsAdmin.php:1
    840840msgid "Link to the terms and condition page where user can read terms and conditions."
    841841msgstr ""
    842842
    843 #: app/admin/RTMediaUploadTermsAdmin.php:172
     843#: app/admin/RTMediaUploadTermsAdmin.php:17
    844844msgid "Terms of Service Message"
    845845msgstr ""
    846846
    847 #: app/admin/RTMediaUploadTermsAdmin.php:177
     847#: app/admin/RTMediaUploadTermsAdmin.php:1
    848848msgid "Add Terms of Service Message."
    849849msgstr ""
    850850
    851 #: app/admin/RTMediaUploadTermsAdmin.php:182
     851#: app/admin/RTMediaUploadTermsAdmin.php:18
    852852msgid "Error Message"
    853853msgstr ""
    854854
    855 #: app/admin/RTMediaUploadTermsAdmin.php:187
     855#: app/admin/RTMediaUploadTermsAdmin.php:1
    856856msgid "Display Error Message When User Upload Media Without Selecting Checkbox ."
    857857msgstr ""
    858858
    859 #: app/admin/RTMediaUploadTermsAdmin.php:192
     859#: app/admin/RTMediaUploadTermsAdmin.php:19
    860860msgid "Show \"Privacy Message\" on website"
    861861msgstr ""
    862862
    863 #: app/admin/RTMediaUploadTermsAdmin.php:197
     863#: app/admin/RTMediaUploadTermsAdmin.php:
    864864msgid "User will see the privacy message on website."
    865865msgstr ""
    866866
    867 #: app/admin/RTMediaUploadTermsAdmin.php:202
     867#: app/admin/RTMediaUploadTermsAdmin.php:20
    868868msgid "Privacy Message"
    869869msgstr ""
    870870
    871 #: app/admin/RTMediaUploadTermsAdmin.php:207
     871#: app/admin/RTMediaUploadTermsAdmin.php:2
    872872msgid "Display privacy message on your website."
    873873msgstr ""
     
    34823482msgstr ""
    34833483
     3484
     3485
     3486
     3487
     3488
     3489
     3490
     3491
     3492
     3493
     3494
     3495
     3496
     3497
     3498
     3499
    34843500#: templates/media/media-gallery.php:27
    34853501#: templates/media/media-gallery.php:63
  • buddypress-media/tags/4.7.9/readme.txt

    r3433318 r3450325  
    66Requires at least: 4.1
    77Tested up to: 6.9
    8 Stable tag: 4.7.8
     8Stable tag: 4.7.
    99
    1010Add albums, photo, audio/video upload, privacy, sharing, front-end uploads & more. All this works on mobile/tablets devices.
     
    129129== Changelog ==
    130130
     131
     132
     133
     134
     135
     136
     137
     138
     139
     140
    131141= 4.7.8 [January 06, 2026] =
    132142
  • buddypress-media/tags/4.7.9/templates/media/godam-integration.php

    r3354581 r3450325  
    5050        function () {
    5151
    52             // Enqueue integration script for rtMedia and Godam.
    53             wp_enqueue_script(
    54                 'godam-rtmedia-integration',
    55                 RTMEDIA_URL . 'app/assets/js/godam-integration.min.js',
    56                 array( 'godam-player-frontend-script' ),
    57                 null,
    58                 true
    59             );
     52            // Skip loading rtMedia's GoDAM integration script on Godam video embed pages.
     53            if ( 'video-embed' !== get_query_var( 'godam_page' ) ) {
     54                // Enqueue integration script for rtMedia and Godam.
     55                wp_enqueue_script(
     56                    'godam-rtmedia-integration',
     57                    RTMEDIA_URL . 'app/assets/js/godam-integration.min.js',
     58                    array( 'godam-player-frontend-script' ),
     59                    null,
     60                    true
     61                );
     62            }
    6063
    6164            // Enqueue the script responsible for AJAX-based comment refresh.
     
    184187    /**
    185188     * Handle AJAX request for loading a single activity comment's HTML.
     189
    186190     */
    187191    add_action( 'wp_ajax_get_single_activity_comment_html', 'handle_get_single_activity_comment_html' );
    188     add_action( 'wp_ajax_nopriv_get_single_activity_comment_html', 'handle_get_single_activity_comment_html' );
    189192
    190193    /**
     
    192195     *
    193196     * Validates the request, loads the activity comment by ID,
     197
    194198     * renders its HTML using the BuddyPress template, and returns it in a JSON response.
    195199     *
     
    199203        check_ajax_referer( 'godam-ajax-nonce', 'nonce' );
    200204
     205
     206
     207
     208
     209
    201210        $activity_id = isset( $_POST['comment_id'] ) ? intval( $_POST['comment_id'] ) : 0;
    202211
    203212        if ( ! $activity_id ) {
    204             wp_send_json_error( 'Invalid activity ID' );
     213            wp_send_json_error( );
    205214        }
    206215
    207216        $activity = new BP_Activity_Activity( $activity_id );
    208217        if ( empty( $activity->id ) ) {
    209             wp_send_json_error( 'Activity comment not found' );
     218            wp_send_json_error( __( 'Activity comment not found', 'buddypress-media' ), 404 );
     219        }
     220
     221        // Verify user has permission to view this activity.
     222        if ( ! rtmedia_user_can_view_activity( $activity ) ) {
     223            wp_send_json_error( __( 'You do not have permission to view this activity', 'buddypress-media' ), 403 );
    210224        }
    211225
     
    229243
    230244        wp_send_json_success( array( 'html' => $html ) );
     245
     246
     247
     248
     249
     250
     251
     252
     253
     254
     255
     256
     257
     258
     259
     260
     261
     262
     263
     264
     265
     266
     267
     268
     269
     270
     271
     272
     273
     274
     275
     276
     277
     278
     279
     280
     281
     282
     283
     284
     285
     286
     287
     288
     289
     290
     291
     292
     293
     294
     295
     296
     297
     298
     299
     300
     301
     302
     303
     304
     305
     306
     307
     308
     309
     310
     311
     312
     313
     314
     315
     316
     317
     318
     319
     320
     321
     322
     323
     324
     325
     326
     327
     328
     329
    231330    }
    232331
  • buddypress-media/trunk/.github/workflows/create.yml

    r3433318 r3450325  
    1212    runs-on: ubuntu-latest
    1313    steps:
    14     - uses: actions/checkout@v4
     14    - uses: actions/checkout@v
    1515    - name: Install SVN ( Subversion )
    1616      run: |
  • buddypress-media/trunk/.github/workflows/phpcs_on_pull_request.yml

    r3433318 r3450325  
    1111    runs-on: ubuntu-latest
    1212    steps:
    13     - uses: actions/checkout@v2
     13    - uses: actions/checkout@v
    1414      with:
    1515        ref: ${{ github.event.pull_request.head.sha }}
  • buddypress-media/trunk/.github/workflows/playwright.yml

    r3433318 r3450325  
    2929    steps:
    3030      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
    31       - uses: actions/checkout@v3
     31      - uses: actions/checkout@v
    3232        with:
    3333          ref: ${{ github.event.pull_request.head.sha }}
     
    4747      - name: Archive HTML Report on failure
    4848        if: failure()
    49         uses: actions/upload-artifact@v4
     49        uses: actions/upload-artifact@v
    5050        with:
    5151          name: report
  • buddypress-media/trunk/app/admin/RTMediaUploadTermsAdmin.php

    r3386907 r3450325  
    3838         */
    3939        public function __construct() {
    40             $this->upload_terms_message       = esc_html__( 'terms of services.', 'buddypress-media' );
    41             $this->upload_terms_error_message = esc_html__( 'Please check terms of service.', 'buddypress-media' );
     40            add_action( 'init', array( $this, 'init_translations' ), 5 );
    4241
    4342            add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts_styles' ), 999 );
     
    4544            add_filter( 'rtmedia_general_content_groups', array( $this, 'admin_setting_add_terms_section' ), 10, 1 );
    4645            add_filter( 'rtmedia_general_content_add_itmes', array( $this, 'admin_setting_add_terms_option' ), 10, 2 );
     46
     47
     48
     49
     50
     51
     52
     53
    4754        }
    4855
  • buddypress-media/trunk/changelog.txt

    r3433318 r3450325  
    11== Changelog ==
     2
     3
     4
     5
     6
     7
     8
     9
     10
     11
    212
    313= 4.7.8 [January 06, 2026] =
  • buddypress-media/trunk/index.php

    r3433318 r3450325  
    44 * Plugin URI: https://rtmedia.io/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
    55 * Description: This plugin adds missing media rich features like photos, videos and audio uploading to BuddyPress which are essential if you are building social network, seriously!
    6  * Version: 4.7.8
     6 * Version: 4.7.
    77 * Requires at least: 4.1
    88 * Text Domain: buddypress-media
     
    2323     * The version of the plugin
    2424     */
    25     define( 'RTMEDIA_VERSION', '4.7.8' );
     25    define( 'RTMEDIA_VERSION', '4.7.' );
    2626}
    2727
  • buddypress-media/trunk/languages/buddpress-media.pot

    r3433318 r3450325  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: rtMedia for WordPress, BuddyPress and bbPress 4.7.8\n"
     5"Project-Id-Version: rtMedia for WordPress, BuddyPress and bbPress 4.7.\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/buddypress-media\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2026-01-06T06:20:43+00:00\n"
     12"POT-Creation-Date: 2026-01-+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
     
    792792msgstr ""
    793793
    794 #: app/admin/RTMediaUploadTermsAdmin.php:40
     794#: app/admin/RTMediaUploadTermsAdmin.php:
    795795msgid "terms of services."
    796796msgstr ""
    797797
    798 #: app/admin/RTMediaUploadTermsAdmin.php:41
     798#: app/admin/RTMediaUploadTermsAdmin.php:
    799799msgid "Please check terms of service."
    800800msgstr ""
    801801
    802 #: app/admin/RTMediaUploadTermsAdmin.php:62
     802#: app/admin/RTMediaUploadTermsAdmin.php:6
    803803msgid "Please enter valid URL."
    804804msgstr ""
    805805
    806 #: app/admin/RTMediaUploadTermsAdmin.php:63
     806#: app/admin/RTMediaUploadTermsAdmin.php:
    807807msgid "Please enter terms message."
    808808msgstr ""
    809809
    810 #: app/admin/RTMediaUploadTermsAdmin.php:64
     810#: app/admin/RTMediaUploadTermsAdmin.php:
    811811msgid "Please enter error message."
    812812msgstr ""
    813813
    814 #: app/admin/RTMediaUploadTermsAdmin.php:65
     814#: app/admin/RTMediaUploadTermsAdmin.php:
    815815msgid "Please enter privacy message."
    816816msgstr ""
    817817
    818 #: app/admin/RTMediaUploadTermsAdmin.php:126
     818#: app/admin/RTMediaUploadTermsAdmin.php:1
    819819msgid "Ask users to agree to your terms"
    820820msgstr ""
    821821
    822 #: app/admin/RTMediaUploadTermsAdmin.php:141
     822#: app/admin/RTMediaUploadTermsAdmin.php:14
    823823msgid "Show \"Terms of Service\" checkbox on upload screen"
    824824msgstr ""
    825825
    826 #: app/admin/RTMediaUploadTermsAdmin.php:146
    827 #: app/admin/RTMediaUploadTermsAdmin.php:156
     826#: app/admin/RTMediaUploadTermsAdmin.php:1
     827#: app/admin/RTMediaUploadTermsAdmin.php:1
    828828msgid "User have to check the terms and conditions before uploading the media."
    829829msgstr ""
    830830
    831 #: app/admin/RTMediaUploadTermsAdmin.php:151
     831#: app/admin/RTMediaUploadTermsAdmin.php:15
    832832msgid "Show \"Terms of Service\" checkbox on activity screen"
    833833msgstr ""
    834834
    835 #: app/admin/RTMediaUploadTermsAdmin.php:161
     835#: app/admin/RTMediaUploadTermsAdmin.php:16
    836836msgid "Link for \"Terms of Service\" page"
    837837msgstr ""
    838838
    839 #: app/admin/RTMediaUploadTermsAdmin.php:166
     839#: app/admin/RTMediaUploadTermsAdmin.php:1
    840840msgid "Link to the terms and condition page where user can read terms and conditions."
    841841msgstr ""
    842842
    843 #: app/admin/RTMediaUploadTermsAdmin.php:172
     843#: app/admin/RTMediaUploadTermsAdmin.php:17
    844844msgid "Terms of Service Message"
    845845msgstr ""
    846846
    847 #: app/admin/RTMediaUploadTermsAdmin.php:177
     847#: app/admin/RTMediaUploadTermsAdmin.php:1
    848848msgid "Add Terms of Service Message."
    849849msgstr ""
    850850
    851 #: app/admin/RTMediaUploadTermsAdmin.php:182
     851#: app/admin/RTMediaUploadTermsAdmin.php:18
    852852msgid "Error Message"
    853853msgstr ""
    854854
    855 #: app/admin/RTMediaUploadTermsAdmin.php:187
     855#: app/admin/RTMediaUploadTermsAdmin.php:1
    856856msgid "Display Error Message When User Upload Media Without Selecting Checkbox ."
    857857msgstr ""
    858858
    859 #: app/admin/RTMediaUploadTermsAdmin.php:192
     859#: app/admin/RTMediaUploadTermsAdmin.php:19
    860860msgid "Show \"Privacy Message\" on website"
    861861msgstr ""
    862862
    863 #: app/admin/RTMediaUploadTermsAdmin.php:197
     863#: app/admin/RTMediaUploadTermsAdmin.php:
    864864msgid "User will see the privacy message on website."
    865865msgstr ""
    866866
    867 #: app/admin/RTMediaUploadTermsAdmin.php:202
     867#: app/admin/RTMediaUploadTermsAdmin.php:20
    868868msgid "Privacy Message"
    869869msgstr ""
    870870
    871 #: app/admin/RTMediaUploadTermsAdmin.php:207
     871#: app/admin/RTMediaUploadTermsAdmin.php:2
    872872msgid "Display privacy message on your website."
    873873msgstr ""
     
    34823482msgstr ""
    34833483
     3484
     3485
     3486
     3487
     3488
     3489
     3490
     3491
     3492
     3493
     3494
     3495
     3496
     3497
     3498
     3499
    34843500#: templates/media/media-gallery.php:27
    34853501#: templates/media/media-gallery.php:63
  • buddypress-media/trunk/readme.txt

    r3433318 r3450325  
    66Requires at least: 4.1
    77Tested up to: 6.9
    8 Stable tag: 4.7.8
     8Stable tag: 4.7.
    99
    1010Add albums, photo, audio/video upload, privacy, sharing, front-end uploads & more. All this works on mobile/tablets devices.
     
    129129== Changelog ==
    130130
     131
     132
     133
     134
     135
     136
     137
     138
     139
     140
    131141= 4.7.8 [January 06, 2026] =
    132142
  • buddypress-media/trunk/templates/media/godam-integration.php

    r3354581 r3450325  
    5050        function () {
    5151
    52             // Enqueue integration script for rtMedia and Godam.
    53             wp_enqueue_script(
    54                 'godam-rtmedia-integration',
    55                 RTMEDIA_URL . 'app/assets/js/godam-integration.min.js',
    56                 array( 'godam-player-frontend-script' ),
    57                 null,
    58                 true
    59             );
     52            // Skip loading rtMedia's GoDAM integration script on Godam video embed pages.
     53            if ( 'video-embed' !== get_query_var( 'godam_page' ) ) {
     54                // Enqueue integration script for rtMedia and Godam.
     55                wp_enqueue_script(
     56                    'godam-rtmedia-integration',
     57                    RTMEDIA_URL . 'app/assets/js/godam-integration.min.js',
     58                    array( 'godam-player-frontend-script' ),
     59                    null,
     60                    true
     61                );
     62            }
    6063
    6164            // Enqueue the script responsible for AJAX-based comment refresh.
     
    184187    /**
    185188     * Handle AJAX request for loading a single activity comment's HTML.
     189
    186190     */
    187191    add_action( 'wp_ajax_get_single_activity_comment_html', 'handle_get_single_activity_comment_html' );
    188     add_action( 'wp_ajax_nopriv_get_single_activity_comment_html', 'handle_get_single_activity_comment_html' );
    189192
    190193    /**
     
    192195     *
    193196     * Validates the request, loads the activity comment by ID,
     197
    194198     * renders its HTML using the BuddyPress template, and returns it in a JSON response.
    195199     *
     
    199203        check_ajax_referer( 'godam-ajax-nonce', 'nonce' );
    200204
     205
     206
     207
     208
     209
    201210        $activity_id = isset( $_POST['comment_id'] ) ? intval( $_POST['comment_id'] ) : 0;
    202211
    203212        if ( ! $activity_id ) {
    204             wp_send_json_error( 'Invalid activity ID' );
     213            wp_send_json_error( );
    205214        }
    206215
    207216        $activity = new BP_Activity_Activity( $activity_id );
    208217        if ( empty( $activity->id ) ) {
    209             wp_send_json_error( 'Activity comment not found' );
     218            wp_send_json_error( __( 'Activity comment not found', 'buddypress-media' ), 404 );
     219        }
     220
     221        // Verify user has permission to view this activity.
     222        if ( ! rtmedia_user_can_view_activity( $activity ) ) {
     223            wp_send_json_error( __( 'You do not have permission to view this activity', 'buddypress-media' ), 403 );
    210224        }
    211225
     
    229243
    230244        wp_send_json_success( array( 'html' => $html ) );
     245
     246
     247
     248
     249
     250
     251
     252
     253
     254
     255
     256
     257
     258
     259
     260
     261
     262
     263
     264
     265
     266
     267
     268
     269
     270
     271
     272
     273
     274
     275
     276
     277
     278
     279
     280
     281
     282
     283
     284
     285
     286
     287
     288
     289
     290
     291
     292
     293
     294
     295
     296
     297
     298
     299
     300
     301
     302
     303
     304
     305
     306
     307
     308
     309
     310
     311
     312
     313
     314
     315
     316
     317
     318
     319
     320
     321
     322
     323
     324
     325
     326
     327
     328
     329
    231330    }
    232331
Note: See TracChangeset for help on using the changeset viewer.