update post meta canonical
This commit is contained in:
parent
c653575594
commit
aca5e273fe
1 changed files with 2 additions and 2 deletions
|
@ -126,7 +126,7 @@ class Comment {
|
||||||
}
|
}
|
||||||
} else { //parent is_post
|
} else { //parent is_post
|
||||||
// Backwards compatibility
|
// Backwards compatibility
|
||||||
$pretty_permalink = \get_post_meta( $comment->comment_post_ID, '_activitypub_permalink_compat', true );
|
$pretty_permalink = \get_post_meta( $comment->comment_post_ID, 'activitypub_canonical_url', true );
|
||||||
if ( $pretty_permalink ) {
|
if ( $pretty_permalink ) {
|
||||||
$in_reply_to = $pretty_permalink;
|
$in_reply_to = $pretty_permalink;
|
||||||
} else {
|
} else {
|
||||||
|
@ -144,7 +144,7 @@ class Comment {
|
||||||
public function generate_context() {
|
public function generate_context() {
|
||||||
$comment = $this->comment;
|
$comment = $this->comment;
|
||||||
// support pretty_permalinks
|
// support pretty_permalinks
|
||||||
$pretty_permalink = \get_post_meta( $comment->comment_post_ID, '_activitypub_permalink_compat', true );
|
$pretty_permalink = \get_post_meta( $comment->comment_post_ID, 'activitypub_canonical_url', true );
|
||||||
if ( $pretty_permalink ) {
|
if ( $pretty_permalink ) {
|
||||||
$context = $pretty_permalink;
|
$context = $pretty_permalink;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue