this post was submitted on 08 Jan 2026
170 points (98.9% liked)

Fediverse memes

3054 readers
226 users here now

Memes about the Fediverse.

Rules

General
  1. Be respectful
  2. Post on topic
  3. No bigotry or hate speech
  4. Memes should not be personal attacks towards other users
  5. We are not YPTB. If you have a problem with the way an instance or community is run, then take it up over at !yepowertrippinbastards@lemmy.dbzer0.com.
    • Addendum: Yes we know that you think ml/hexbear/grad are tankies and or .world are a bunch of liberals but it gets old quickly. Try and come up with new material.
  6. This is not the place to start flamewars between Lemmy, Mbin and Piefed.

Elsewhere in the Fediverse

Other relevant communities:

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] asudox@lemmy.asudox.dev 7 points 2 months ago* (last edited 2 months ago) (1 children)

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


[...]

!dailygames@lemmy.zip

[โ€“] wjs018@piefed.social 14 points 2 months ago* (last edited 2 months ago)

IIRC that extra PieFed code is because the daily games that get posted to that community were constantly being collapsed into crossposts. It really hurt the visibility of the most recent post, kind of defeating the purpose of the community.