tux spinning

codeberg: https://codeberg.org/asudox

aspe:keyoxide.org:D63IYCGSU4XXB5JSCBBHXXFEHQ

  • 33 Posts
  • 1.12K Comments
Joined 1 year ago
cake
Cake day: January 18th, 2025

help-circle











  • That is a bad idea. Cross posts aren’t a special type of post. Your instance simply checks the URLs of posts and finds other posts with the same URL. That is how cross posting works in Lemmy.

    https://github.com/LemmyNet/lemmy/blob/6f45f801cc0582b14360fd52737cbad3a98b7250/crates/api/api_crud/src/post/read.rs#L90

    [...]
    
      // Fetch the cross_posts
      let cross_posts = if let Some(url) = &post_view.post.url {
        SearchCombinedQuery {
          search_term: Some(url.inner().as_str().into()),
          post_url_only: Some(true),
          type_: Some(SearchType::Posts),
          ..Default::default()
        }
    
    [...]
    

    Piefed seems to do the same thing

    [...]
    
    new_cross_posts = db.session.query(Post).filter(Post.id != self.id, Post.url == self.url, Post.deleted == False,
                                                            Post.status > POST_STATUS_REVIEWING).order_by(desc(Post.id)).limit(limit)
    
    [...]
    

    I also found this weird hardcoded ap id in the function that “calculates” cross posts in piefed for some reason:

    [...]
    
    if self.community.ap_profile_id == 'https://lemmy.zip/c/dailygames':
                # daily posts to this community (e.g. to https://travle.earth/usa or https://www.nytimes.com/games/wordle/index.html) shouldn't be treated as cross-posts
                return
    
    
    [...]
    

    [email protected]




  • I don’t really have a Piefed account, so I just typed in random stuff to see if my prediction was correct.

    You should check the sent data to see if the password or username you typed in are really sent the way you typed them in (as rimu pointed out, it could be that there are some spaces around the username or the password for whatever reason).

    While not something I encounter alot, sometimes using the autofill function of my password manager (Bitwarden) somehow causes the password to not be accepted by the server. Try manually copying and pasting the credentials. If nothing works, I guess open a bug report at voyager repo.

    I doubt this has to do with Piefed’s API.






  • asudox@lemmy.asudox.devMtoAsk Lemmy@lemmy.worldRule 6?
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    7 days ago

    Yes. The rule is “no US politics”, not “no politics”.

    As long as discussion of Venezuelan politics does not turn into or knowingly cause US political discussion, it will be fine. Let’s be honest here though. Given the current events, it will surely turn into one.