| @@ -65,9 +65,9 @@ | ||
| 65 | 65 | * @param \Activitypub\Activity\Activity $item The Activity object. |
| 66 | 66 | * |
| 67 | 67 | * @return array The filtered mentions. |
| 68 | 68 | */ |
| 69 | - return \apply_filters( | |
| 69 | + return apply_filters( | |
| 70 | 70 | 'activitypub_extract_mentions', |
| 71 | 71 | array(), |
| 72 | 72 | $this->item->get_content() . ' ' . $this->item->get_summary(), |
| 73 | 73 | $this->item |
| @@ -144,9 +144,9 @@ | ||
| 144 | 144 | if ( $mentions ) { |
| 145 | 145 | foreach ( $mentions as $mention => $url ) { |
| 146 | 146 | $tag = array( |
| 147 | 147 | 'type' => 'Mention', |
| 148 | - 'href' => \esc_url_raw( $url ), | |
| 148 | + 'href' => \esc_url( $url ), | |
| 149 | 149 | 'name' => \esc_html( $mention ), |
| 150 | 150 | ); |
| 151 | 151 | $tags[] = $tag; |
| 152 | 152 | } |