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.
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
[...]
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.
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
Piefed seems to do the same thing
I also found this weird hardcoded ap id in the function that “calculates” cross posts in piefed for some reason:
[email protected]
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.