Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
Fixed Altenate-URL (feed)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfefferle committed Nov 21, 2018
1 parent ff5c878 commit 2627d3c
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
**Donate link:** https://notiz.blog/donate/
**Requires at least:** 4.5
**Tested up to:** 4.9.9
**Stable tag:** 2.5.1
**Stable tag:** 2.5.2
**License:** MIT
**License URI:** https://opensource.org/licenses/MIT

Expand Down Expand Up @@ -68,6 +68,10 @@ If you are the author of a relevant plugin, or are planning one, contact us to g

## Changelog ##

### 2.5.2 ###

* Fixed Altenate-URL (feed)

### 2.5.1 ###

* Fixed feed-ids
Expand Down
4 changes: 2 additions & 2 deletions languages/ostatus-for-wordpress.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# This file is distributed under the MIT.
msgid ""
msgstr ""
"Project-Id-Version: OStatus 2.5.1\n"
"Project-Id-Version: OStatus 2.5.2\n"
"Report-Msgid-Bugs-To: "
"https://wordpress.org/support/plugin/wordpress-ostatus\n"
"POT-Creation-Date: 2018-11-21 06:58:20+00:00\n"
"POT-Creation-Date: 2018-11-21 07:19:16+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down
2 changes: 1 addition & 1 deletion ostatus-for-wordpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Author URI: https://notiz.blog/
* License: MIT
* License URI: http://opensource.org/licenses/MIT
* Version: 2.5.1
* Version: 2.5.2
* Text Domain: ostatus-for-wordpress
* Domain Path: /languages
*/
Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: ostatus, federated, mastodon, social, gnusocial, statusnet
Donate link: https://notiz.blog/donate/
Requires at least: 4.5
Tested up to: 4.9.9
Stable tag: 2.5.1
Stable tag: 2.5.2
License: MIT
License URI: https://opensource.org/licenses/MIT

Expand Down Expand Up @@ -68,6 +68,10 @@ If you are the author of a relevant plugin, or are planning one, contact us to g

== Changelog ==

= 2.5.2 =

* Fixed Altenate-URL (feed)

= 2.5.1 =

* Fixed feed-ids
Expand Down
5 changes: 4 additions & 1 deletion templates/feed-ostatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@
echo $date ? mysql2date( 'Y-m-d\TH:i:s\Z', $date, false ) : date( 'Y-m-d\TH:i:s\Z' );
?></updated>

<link rel="alternate" type="<?php bloginfo_rss( 'html_type' ); ?>" href="<?php bloginfo_rss( 'url' ); ?>" />
<id><?php self_link(); ?></id>
<link rel="self" type="application/atom+xml" href="<?php self_link(); ?>" />

<?php if ( is_author() ) : ?>
<link rel="alternate" type="<?php bloginfo_rss( 'html_type' ); ?>" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ), get_the_author_meta( 'user_nicename' ) ) ); ?>" />

<author>
<activity:object-type>http://activitystrea.ms/schema/1.0/person</activity:object-type>
<name><?php the_author() ?></name>
Expand All @@ -59,6 +60,8 @@
<poco:displayName><?php the_author() ?></poco:displayName>
<poco:note><?php echo wp_strip_all_tags( get_the_author_meta( 'description' ) ); ?></poco:note>
</author>
<?php else: ?>
<link rel="alternate" type="<?php bloginfo_rss( 'html_type' ); ?>" href="<?php bloginfo_rss( 'url' ); ?>" />
<?php endif; ?>

<?php
Expand Down

0 comments on commit 2627d3c

Please sign in to comment.