-
@akirk I would like to understand why both are used for storing the origin of an external resource. friends/feed-parsers/class-feed-parser-activitypub.php Lines 1890 to 1893 in 199af50 I would appreciate sharing your thoughts on this design decision back then! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The guid is the fallback when there is no external id since it only is set for posts coming in via ActivityPub. The external id will always be the id, both for posts received via Create or Announce (which funnels into handle_incoming_create), but for announces the guid will be the actual URL. Since the Friends plugin can also receive posts through other sources like RSS, it could be that the external id is not set. And in that case, the URL is the fallback. |
Beta Was this translation helpful? Give feedback.
The guid is the fallback when there is no external id since it only is set for posts coming in via ActivityPub. The external id will always be the id, both for posts received via Create or Announce (which funnels into handle_incoming_create), but for announces the guid will be the actual URL.
Since the Friends plugin can also receive posts through other sources like RSS, it could be that the external id is not set. And in that case, the URL is the fallback.