Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: invalid_community on remote reply #5278

Open
5 tasks done
julianlam opened this issue Dec 20, 2024 · 1 comment
Open
5 tasks done

[Bug]: invalid_community on remote reply #5278

julianlam opened this issue Dec 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@julianlam
Copy link

Requirements

  • Is this a bug report? For questions or discussions use https://lemmy.ml/c/lemmy_support
  • Did you check to see if this issue already exists?
  • Is this only a single bug? Do not put multiple bugs in one issue.
  • Do you agree to follow the rules in our Code of Conduct?
  • Is this a backend issue? Use the lemmy-ui repo for UI / frontend issues.

Summary

I was unable to federate a reply to a lemmy instance running on sopuli.xyz. The reply had inReplyTo set, so the community should be irrelevant.

If not, is it because audience does not match the lemmy community?

Steps to Reproduce

N/A

Technical Details

The returned error was { error: 'invalid_community' }

The full payload is below:

{                                                                                                                                                                        
  '@context': 'https://www.w3.org/ns/activitystreams',                                                                                                                   
  actor: 'https://community.openbeta.io/uid/15',                                                                                                                         
  id: 'https://community.openbeta.io/post/1925#activity/create/1734717171439',                                                                                           
  type: 'Create',                                                                                                                                                        
  to: [                                                                                                                                                                  
    'https://www.w3.org/ns/activitystreams#Public',                                                                                                                      
    'https://sopuli.xyz/u/guslipkin'                                                                                                                                     
  ],                                                                                                                                                                     
  cc: [                                                                                                                                                                  
    'https://community.openbeta.io/uid/15/followers',                                                                                                                    
    'https://sopuli.xyz/u/guslipkin',                                                                                                                                    
    'https://aussie.zone/u/gazter'                                                                                                                                       
  ],                                                                                                                                                                     
  object: {                                                                                                                                                              
    '@context': [ 'https://www.w3.org/ns/activitystreams', [Object] ],                                                                                                   
    id: 'https://community.openbeta.io/post/1925',                                                                                                                       
    type: 'Note',                                                                                                                                                        
    to: [                                                                                                                                                                
      'https://www.w3.org/ns/activitystreams#Public',                                                                                                                    
      'https://sopuli.xyz/u/guslipkin'                                                                                                                                   
    ],                                                                                                                                                                   
    cc: [                                                                                                                                                                
      'https://community.openbeta.io/uid/15/followers',                                                                                                                        'https://sopuli.xyz/u/guslipkin',                                                                                                                                  
      'https://aussie.zone/u/gazter'                                                                                                                                         ],                                                                                                                                                                   
    inReplyTo: 'https://sopuli.xyz/comment/13579403',                                                                                                                    
    published: '2024-12-20T17:52:51.307Z',                                                                                                                               
    updated: null,                                                                                                                                                       
    url: 'https://community.openbeta.io/post/1925',                                                                                                                      
    attributedTo: 'https://community.openbeta.io/uid/15',                                                                                                                
    context: 'https://community.openbeta.io/topic/c787dec8-fec3-4922-a542-c4b2e2c5d911',                                                                                 
    audience: 'https://community.openbeta.io/category/11',                                                                                                               
    summary: null,                                                                                                                                                       
    name: 'Re: Edelrid Ohm II vs Raed Zaed',                                                                                                                             
    content: '<p><a href="https://sopuli.xyz/u/guslipkin">@[email protected]</a> yeah the Ohmega is interesting... given how quickly it was introduced after the Ohm I
I was released.</p>\n' +                                                                                                                                                 
      "<p>It's almost like they explicitly marketed it as a different product even though it serves to replace the function of the Ohm (plus a couple added features – it
's not <em>just</em> a belay resistor)</p>\n",                                                                                                                           
    source: {                                                                                                                                                            
      content: '@[email protected] yeah the Ohmega is interesting... given how quickly it was introduced after the Ohm II was released.\n' +                          
        '\n' +                                                                                                                                                           
        "It's almost like they explicitly marketed it as a different product even though it serves to replace the function of the Ohm (plus a couple added features &ndas
h; it's not _just_ a belay resistor)",                                                                                                                                   
      mediaType: 'text/markdown'                                                                                                                                         
    },                                                                                                                                                                   
    tag: [ [Object] ],                                                                                                                                                   
    attachment: [],                                                                                                                                                      
    replies: 'https://community.openbeta.io/post/1925/replies'                                                                                                           
  }  
}

Version

BE: 0.19.8

Lemmy Instance URL

sopuli.xyz, aussie.zone

@julianlam julianlam added the bug Something isn't working label Dec 20, 2024
@julianlam
Copy link
Author

I believe Lemmy is doing a check on audience and finding that it does not resolve to a known community on the local instance.

However, if a note is in reply to a valid post then the audience should be irrelevant.

Also I am assuming that simply removing audience would work, since not all implementors utilise the property.

Suggest audience property be ignored unless post is standalone?

julianlam added a commit to NodeBB/NodeBB that referenced this issue Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant