Skip to content

Commit

Permalink
Link the post
Browse files Browse the repository at this point in the history
  • Loading branch information
akirk committed Jan 6, 2025
1 parent ec946d5 commit 02c6e8f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions feed-parsers/class-feed-parser-activitypub.php
Original file line number Diff line number Diff line change
Expand Up @@ -933,13 +933,14 @@ protected function process_incoming_activity( $type, $activity, $user_id, $user_
$item = $this->handle_incoming_create( $activity['object'] );
if ( isset( $activity['object']['type'] ) && 'Note' === $activity['object']['type'] ) {
$friend_user = $user_feed->get_friend_user();
$post_id = Feed::url_to_postid( $item->permalink );
$message = sprintf(
// translators: %s is the user login.
__( 'Received post update for %s', 'friends' ),
// translators: %1$s is the post URL, %2$s is the linked user display name.
__( 'Received <a href="%1$s">post update</a> for %2$s', 'friends' ),
$friend_user->get_local_friends_page_url( $post_id ),
'<a href="' . esc_url( $friend_user->get_local_friends_page_url() ) . '">' . esc_html( $friend_user->display_name ) . '</a>'
);
$details = array();
$post_id = Feed::url_to_postid( $item->permalink );
if ( $post_id ) {
$_post = get_post( $post_id );
if ( ! class_exists( 'WP_Text_Diff_Renderer_inline', false ) ) {
Expand Down

0 comments on commit 02c6e8f

Please sign in to comment.