aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-10-13 03:27:15 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-10-13 03:27:15 -0700
commit0f660c25d9a15a3514cfbed2a127be31c1e1bf73 (patch)
treea563dc543ab763ffdbf4de0649d9afdec1a2eb76
parentc1fb819d34307bf02f0bf6e199ad984209480b27 (diff)
downloadvolse-hubzilla-0f660c25d9a15a3514cfbed2a127be31c1e1bf73.tar.gz
volse-hubzilla-0f660c25d9a15a3514cfbed2a127be31c1e1bf73.tar.bz2
volse-hubzilla-0f660c25d9a15a3514cfbed2a127be31c1e1bf73.zip
publish both forms of profile pictures in feeds for compatibility. Also set sizes.
-rw-r--r--view/atom_cmnt.tpl3
-rw-r--r--view/atom_feed.tpl3
-rw-r--r--view/atom_item.tpl6
3 files changed, 8 insertions, 4 deletions
diff --git a/view/atom_cmnt.tpl b/view/atom_cmnt.tpl
index a067f50ca..6c1a15faa 100644
--- a/view/atom_cmnt.tpl
+++ b/view/atom_cmnt.tpl
@@ -2,7 +2,8 @@
<author>
<name>$name</name>
<uri>$profile_page</uri>
- <link rel="photo" type="image/jpeg" href="$thumb" />
+ <link rel="photo" type="image/jpeg" media:width="80" media:height="80" href="$thumb" />
+ <link rel="avatar" type="image/jpeg" media:width="80" media:height="80" href="$thumb" />
</author>
<thr:in-reply-to ref="$parent_id" />
diff --git a/view/atom_feed.tpl b/view/atom_feed.tpl
index 7918c0d09..da1d53e39 100644
--- a/view/atom_feed.tpl
+++ b/view/atom_feed.tpl
@@ -18,5 +18,6 @@
<author>
<name dfrn:updated="$namdate" >$name</name>
<uri dfrn:updated="$uridate" >$profile_page</uri>
- <link rel="photo" type="image/jpeg" dfrn:updated="$picdate" href="$thumb" />
+ <link rel="photo" type="image/jpeg" dfrn:updated="$picdate" media:width="175" media:height="175" href="$photo" />
+ <link rel="avatar" type="image/jpeg" dfrn:updated="$picdate" media:width="175" media:height="175" href="$photo" />
</author>
diff --git a/view/atom_item.tpl b/view/atom_item.tpl
index baede636c..401441e16 100644
--- a/view/atom_item.tpl
+++ b/view/atom_item.tpl
@@ -2,12 +2,14 @@
<author>
<name>$name</name>
<uri>$profile_page</uri>
- <link rel="photo" type="image/jpeg" href="$thumb" />
+ <link rel="photo" type="image/jpeg" media:width="80" media:height="80" href="$thumb" />
+ <link rel="avatar" type="image/jpeg" media:width="80" media:height="80" href="$thumb" />
</author>
<dfrn:owner>
<name>$owner_name</name>
<uri>$owner_profile_page</uri>
- <link rel="photo" type="image/jpeg" href="$owner_thumb" />
+ <link rel="photo" type="image/jpeg" media:width="80" media:height="80" href="$owner_thumb" />
+ <link rel="avatar" type="image/jpeg" media:width="80" media:height="80" href="$owner_thumb" />
</dfrn:owner>
<id>$item_id</id>