BuddyDev

Search

[Resolved] Media (not) posting to main activity feed

  • Participant
    Level: Master
    Posts: 279
    Richard Foley on #34699

    hi Brajesh et al,

    I have an issue on my mediapress site where a user can post media anywhere and it only appears on his personal profile activity feed. It doesn’t seem to matter whether they post media from their profile, or from the main activity feed. The media is only seen on their own activity feed, and galleries, NOT on the site-wide feed.

    1. post media (anywhere)
    -> media appears on personal activity ok
    -> media does NOT appear on site wide activity <- the missing media activity entry – not ok

    2. post text (anywhere)
    -> text appears on personal activity ok
    -> text appears on site wide activity ok

    I hope this is clear. Any suggestions to pin this down/fix it, would be appreciated.

    ps. as always, thanks for MediaPress and all your work on BuddyDev code.

  • Participant
    Level: Master
    Posts: 279
    Richard Foley on #34700

    ps. I have Dash -> MediaPress -> Settings -> BuddyPress

    Automatically Publish to activity When? 

    New Gallery is created. (no)

     New Media added/uploaded. (yes)

    pps. I’m using MediaPress v1.5.1

    • This reply was modified 3 years, 11 months ago by Richard Foley.
  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #34702

    Hi Richard,
    Welcome back.

    is there any chance the media is being uploaded to non public gallery?

    If a media is uploaded to non public gallery, the activity is marked as hidden (BuddyPress only supports public or hidden activity out of the box currently).

    Please let me know if that is not the case?

    Regards
    Brajesh

  • Participant
    Level: Master
    Posts: 279
    Richard Foley on #34713

    hi Brajesh,

    thanks and yes, it’s been a very busy time 🙂

    So, the gallery are public public.
    The permissions on the media are also public.
    All my material is set to public.

    However, the default Dash -> MediaPress -> Settings -> General -> Privacy Settings

    Default status for Gallery/Media is set to

    “Logged In Users Only” (It will be used when we are not allowed to get the status from user)

    Perhaps this is kicking in unexpectedly?

    This is not clear yet, but if so, how can I/we check or control the permissions, to avoid this issue?

    R.

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #34732

    Hi Richard,
    Thank you for the reply. I am glad you are back to the BuddyPress.

    I had a look and here is the code we use

    
    		$status = isset( $_POST['media_status'] ) ? $_POST['media_status'] : '';
    
    		if ( empty( $status ) && $gallery ) {
    			// inherit from parent,gallery must have an status.
    			$status = $gallery->status;
    		}
    
    		// we may need some more enhancements here.
    		if ( ! $status ) {
    			$status = mpp_get_default_status();
    		}
    

    The media’s status is set to that of parent gallery unless the gallery’s status is empty. Thta is very unlikely.

    There is only one case when it might happen. If we have a gallery status and that status is not enabled for the members component, It falls back to default status.

    1. Please make sure “Public” is enabled in the “Enabled Media/Gallery Statuses” option on general settings panel for MediaPress

    2. If it does not work, Please try changing wall gallery’s status manually to public and then try uploading a new activity.

    Please let me know if that solve it or not?

    Regards
    Brajesh

  • Participant
    Level: Master
    Posts: 279
    Richard Foley on #35182

    hi Brajesh,

    I’ve followed your suggestions above but no change.

    I also apologise for the delay in following this up, in direct contrast to your speedy response! When I get the time to dedicate to this, I will debug it in earnest – at which point your pasted code snippet will no doubt be helpful in locating the issue.

    Meanwhile I’m marking this as resolved as I am almost sure it is a local issue.

    ps. Happy New Year 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #35184

    Hi Richard,
    Thank you for the reply.

    Happy New Year to you too 🙂

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: resolved